1 /* vim: se cin sw=2 ts=2 et : */
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #ifndef __mozilla_widget_GfxInfo_h__
9 #define __mozilla_widget_GfxInfo_h__
11 #include "GfxInfoBase.h"
16 class GfxInfo
: public GfxInfoBase
22 // We only declare the subset of nsIGfxInfo that we actually implement. The
23 // rest is brought forward from GfxInfoBase.
24 NS_IMETHOD
GetD2DEnabled(bool *aD2DEnabled
);
25 NS_IMETHOD
GetDWriteEnabled(bool *aDWriteEnabled
);
26 NS_IMETHOD
GetDWriteVersion(nsAString
& aDwriteVersion
);
27 NS_IMETHOD
GetCleartypeParameters(nsAString
& aCleartypeParams
);
28 NS_IMETHOD
GetAdapterDescription(nsAString
& aAdapterDescription
);
29 NS_IMETHOD
GetAdapterDriver(nsAString
& aAdapterDriver
);
30 NS_IMETHOD
GetAdapterVendorID(nsAString
& aAdapterVendorID
);
31 NS_IMETHOD
GetAdapterDeviceID(nsAString
& aAdapterDeviceID
);
32 NS_IMETHOD
GetAdapterSubsysID(nsAString
& aAdapterSubsysID
);
33 NS_IMETHOD
GetAdapterRAM(nsAString
& aAdapterRAM
);
34 NS_IMETHOD
GetAdapterDriverVersion(nsAString
& aAdapterDriverVersion
);
35 NS_IMETHOD
GetAdapterDriverDate(nsAString
& aAdapterDriverDate
);
36 NS_IMETHOD
GetAdapterDescription2(nsAString
& aAdapterDescription
);
37 NS_IMETHOD
GetAdapterDriver2(nsAString
& aAdapterDriver
);
38 NS_IMETHOD
GetAdapterVendorID2(nsAString
& aAdapterVendorID
);
39 NS_IMETHOD
GetAdapterDeviceID2(nsAString
& aAdapterDeviceID
);
40 NS_IMETHOD
GetAdapterSubsysID2(nsAString
& aAdapterSubsysID
);
41 NS_IMETHOD
GetAdapterRAM2(nsAString
& aAdapterRAM
);
42 NS_IMETHOD
GetAdapterDriverVersion2(nsAString
& aAdapterDriverVersion
);
43 NS_IMETHOD
GetAdapterDriverDate2(nsAString
& aAdapterDriverDate
);
44 NS_IMETHOD
GetIsGPU2Active(bool *aIsGPU2Active
);
45 using GfxInfoBase::GetFeatureStatus
;
46 using GfxInfoBase::GetFeatureSuggestedDriverVersion
;
47 using GfxInfoBase::GetWebGLParameter
;
49 virtual nsresult
Init();
51 virtual uint32_t OperatingSystemVersion() MOZ_OVERRIDE
{ return mWindowsVersion
; }
54 NS_DECL_ISUPPORTS_INHERITED
55 NS_DECL_NSIGFXINFODEBUG
60 virtual nsresult
GetFeatureStatusImpl(int32_t aFeature
,
62 nsAString
& aSuggestedDriverVersion
,
63 const nsTArray
<GfxDriverInfo
>& aDriverInfo
,
64 OperatingSystem
* aOS
= nullptr);
65 virtual const nsTArray
<GfxDriverInfo
>& GetGfxDriverInfo();
69 void AddCrashReportAnnotations();
70 nsString mDeviceString
;
72 nsString mDriverVersion
;
75 nsString mDeviceKeyDebug
;
76 nsString mAdapterVendorID
;
77 nsString mAdapterDeviceID
;
78 nsString mAdapterSubsysID
;
79 nsString mDeviceString2
;
80 nsString mDriverVersion2
;
82 nsString mDriverDate2
;
84 nsString mAdapterVendorID2
;
85 nsString mAdapterDeviceID2
;
86 nsString mAdapterSubsysID2
;
87 uint32_t mWindowsVersion
;
90 bool mHasDriverVersionMismatch
;
94 } // namespace mozilla
96 #endif /* __mozilla_widget_GfxInfo_h__ */