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"
15 #include "mozilla/UniquePtr.h"
25 class GfxInfo
: public GfxInfoBase
{
32 // We only declare the subset of nsIGfxInfo that we actually implement. The
33 // rest is brought forward from GfxInfoBase.
34 NS_IMETHOD
GetD2DEnabled(bool* aD2DEnabled
) override
;
35 NS_IMETHOD
GetDWriteEnabled(bool* aDWriteEnabled
) override
;
36 NS_IMETHOD
GetDWriteVersion(nsAString
& aDwriteVersion
) override
;
37 NS_IMETHOD
GetCleartypeParameters(nsAString
& aCleartypeParams
) override
;
38 NS_IMETHOD
GetAdapterDescription(nsAString
& aAdapterDescription
) override
;
39 NS_IMETHOD
GetAdapterDriver(nsAString
& aAdapterDriver
) override
;
40 NS_IMETHOD
GetAdapterVendorID(nsAString
& aAdapterVendorID
) override
;
41 NS_IMETHOD
GetAdapterDeviceID(nsAString
& aAdapterDeviceID
) override
;
42 NS_IMETHOD
GetAdapterSubsysID(nsAString
& aAdapterSubsysID
) override
;
43 NS_IMETHOD
GetAdapterRAM(uint32_t* aAdapterRAM
) override
;
44 NS_IMETHOD
GetAdapterDriverVersion(nsAString
& aAdapterDriverVersion
) override
;
45 NS_IMETHOD
GetAdapterDriverDate(nsAString
& aAdapterDriverDate
) override
;
46 NS_IMETHOD
GetAdapterDescription2(nsAString
& aAdapterDescription
) override
;
47 NS_IMETHOD
GetAdapterDriver2(nsAString
& aAdapterDriver
) override
;
48 NS_IMETHOD
GetAdapterVendorID2(nsAString
& aAdapterVendorID
) override
;
49 NS_IMETHOD
GetAdapterDeviceID2(nsAString
& aAdapterDeviceID
) override
;
50 NS_IMETHOD
GetAdapterSubsysID2(nsAString
& aAdapterSubsysID
) override
;
51 NS_IMETHOD
GetAdapterRAM2(uint32_t* aAdapterRAM
) override
;
52 NS_IMETHOD
GetAdapterDriverVersion2(
53 nsAString
& aAdapterDriverVersion
) override
;
54 NS_IMETHOD
GetAdapterDriverDate2(nsAString
& aAdapterDriverDate
) override
;
55 NS_IMETHOD
GetIsGPU2Active(bool* aIsGPU2Active
) override
;
56 using GfxInfoBase::GetFeatureStatus
;
57 using GfxInfoBase::GetFeatureSuggestedDriverVersion
;
60 NS_DECL_ISUPPORTS_INHERITED
61 NS_DECL_NSIGFXINFODEBUG
65 virtual nsresult
GetFeatureStatusImpl(
66 int32_t aFeature
, int32_t* aStatus
, nsAString
& aSuggestedDriverVersion
,
67 const nsTArray
<GfxDriverInfo
>& aDriverInfo
,
68 OperatingSystem
* aOS
= nullptr);
69 virtual const nsTArray
<GfxDriverInfo
>& GetGfxDriverInfo();
73 } // namespace mozilla
75 #endif /* __mozilla_widget_GfxInfo_h__ */