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"
12 #include "GfxDriverInfo.h"
19 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 uint32_t OperatingSystemVersion() MOZ_OVERRIDE
;
52 NS_DECL_NSIGFXINFODEBUG
57 virtual nsresult
GetFeatureStatusImpl(int32_t aFeature
,
59 nsAString
& aSuggestedDriverVersion
,
60 const nsTArray
<GfxDriverInfo
>& aDriverInfo
,
61 OperatingSystem
* aOS
= nullptr);
62 virtual const nsTArray
<GfxDriverInfo
>& GetGfxDriverInfo();
66 } // namespace mozilla
68 #endif /* __mozilla_widget_GfxInfo_h__ */