Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* vim: se cin sw=2 ts=2 et : */ |
michael@0 | 2 | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- |
michael@0 | 3 | * |
michael@0 | 4 | * This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 5 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 6 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 7 | |
michael@0 | 8 | #ifndef __mozilla_widget_GfxInfo_h__ |
michael@0 | 9 | #define __mozilla_widget_GfxInfo_h__ |
michael@0 | 10 | |
michael@0 | 11 | #include "GfxInfoBase.h" |
michael@0 | 12 | #include "GfxDriverInfo.h" |
michael@0 | 13 | |
michael@0 | 14 | #include "nsString.h" |
michael@0 | 15 | |
michael@0 | 16 | namespace mozilla { |
michael@0 | 17 | namespace widget { |
michael@0 | 18 | |
michael@0 | 19 | class GfxInfo : public GfxInfoBase |
michael@0 | 20 | { |
michael@0 | 21 | public: |
michael@0 | 22 | // We only declare the subset of nsIGfxInfo that we actually implement. The |
michael@0 | 23 | // rest is brought forward from GfxInfoBase. |
michael@0 | 24 | NS_IMETHOD GetD2DEnabled(bool *aD2DEnabled); |
michael@0 | 25 | NS_IMETHOD GetDWriteEnabled(bool *aDWriteEnabled); |
michael@0 | 26 | NS_IMETHOD GetDWriteVersion(nsAString & aDwriteVersion); |
michael@0 | 27 | NS_IMETHOD GetCleartypeParameters(nsAString & aCleartypeParams); |
michael@0 | 28 | NS_IMETHOD GetAdapterDescription(nsAString & aAdapterDescription); |
michael@0 | 29 | NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver); |
michael@0 | 30 | NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID); |
michael@0 | 31 | NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID); |
michael@0 | 32 | NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM); |
michael@0 | 33 | NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion); |
michael@0 | 34 | NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate); |
michael@0 | 35 | NS_IMETHOD GetAdapterDescription2(nsAString & aAdapterDescription); |
michael@0 | 36 | NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver); |
michael@0 | 37 | NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID); |
michael@0 | 38 | NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID); |
michael@0 | 39 | NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM); |
michael@0 | 40 | NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion); |
michael@0 | 41 | NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate); |
michael@0 | 42 | NS_IMETHOD GetIsGPU2Active(bool *aIsGPU2Active); |
michael@0 | 43 | using GfxInfoBase::GetFeatureStatus; |
michael@0 | 44 | using GfxInfoBase::GetFeatureSuggestedDriverVersion; |
michael@0 | 45 | using GfxInfoBase::GetWebGLParameter; |
michael@0 | 46 | |
michael@0 | 47 | virtual uint32_t OperatingSystemVersion() MOZ_OVERRIDE; |
michael@0 | 48 | |
michael@0 | 49 | #ifdef DEBUG |
michael@0 | 50 | NS_DECL_NSIGFXINFODEBUG |
michael@0 | 51 | #endif |
michael@0 | 52 | |
michael@0 | 53 | protected: |
michael@0 | 54 | |
michael@0 | 55 | virtual nsresult GetFeatureStatusImpl(int32_t aFeature, |
michael@0 | 56 | int32_t *aStatus, |
michael@0 | 57 | nsAString & aSuggestedDriverVersion, |
michael@0 | 58 | const nsTArray<GfxDriverInfo>& aDriverInfo, |
michael@0 | 59 | OperatingSystem* aOS = nullptr); |
michael@0 | 60 | virtual const nsTArray<GfxDriverInfo>& GetGfxDriverInfo(); |
michael@0 | 61 | }; |
michael@0 | 62 | |
michael@0 | 63 | } // namespace widget |
michael@0 | 64 | } // namespace mozilla |
michael@0 | 65 | |
michael@0 | 66 | #endif /* __mozilla_widget_GfxInfo_h__ */ |