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 __GfxInfoX11_h__
9 #define __GfxInfoX11_h__
11 #include "GfxInfoBase.h"
16 class GfxInfo final
: public GfxInfoBase
{
18 // We only declare the subset of nsIGfxInfo that we actually implement. The
19 // rest is brought forward from GfxInfoBase.
20 NS_IMETHOD
GetD2DEnabled(bool* aD2DEnabled
) override
;
21 NS_IMETHOD
GetDWriteEnabled(bool* aDWriteEnabled
) override
;
22 NS_IMETHOD
GetDWriteVersion(nsAString
& aDwriteVersion
) override
;
23 NS_IMETHOD
GetCleartypeParameters(nsAString
& aCleartypeParams
) override
;
24 NS_IMETHOD
GetAdapterDescription(nsAString
& aAdapterDescription
) override
;
25 NS_IMETHOD
GetAdapterDriver(nsAString
& aAdapterDriver
) override
;
26 NS_IMETHOD
GetAdapterVendorID(nsAString
& aAdapterVendorID
) override
;
27 NS_IMETHOD
GetAdapterDeviceID(nsAString
& aAdapterDeviceID
) override
;
28 NS_IMETHOD
GetAdapterSubsysID(nsAString
& aAdapterSubsysID
) override
;
29 NS_IMETHOD
GetAdapterRAM(nsAString
& aAdapterRAM
) override
;
30 NS_IMETHOD
GetAdapterDriverVersion(nsAString
& aAdapterDriverVersion
) override
;
31 NS_IMETHOD
GetAdapterDriverDate(nsAString
& aAdapterDriverDate
) override
;
32 NS_IMETHOD
GetAdapterDescription2(nsAString
& aAdapterDescription
) override
;
33 NS_IMETHOD
GetAdapterDriver2(nsAString
& aAdapterDriver
) override
;
34 NS_IMETHOD
GetAdapterVendorID2(nsAString
& aAdapterVendorID
) override
;
35 NS_IMETHOD
GetAdapterDeviceID2(nsAString
& aAdapterDeviceID
) override
;
36 NS_IMETHOD
GetAdapterSubsysID2(nsAString
& aAdapterSubsysID
) override
;
37 NS_IMETHOD
GetAdapterRAM2(nsAString
& aAdapterRAM
) override
;
38 NS_IMETHOD
GetAdapterDriverVersion2(
39 nsAString
& aAdapterDriverVersion
) override
;
40 NS_IMETHOD
GetAdapterDriverDate2(nsAString
& aAdapterDriverDate
) override
;
41 NS_IMETHOD
GetIsGPU2Active(bool* aIsGPU2Active
) override
;
42 using GfxInfoBase::GetFeatureStatus
;
43 using GfxInfoBase::GetFeatureSuggestedDriverVersion
;
45 virtual nsresult
Init() override
;
47 NS_IMETHOD_(void) GetData() override
;
50 NS_DECL_ISUPPORTS_INHERITED
51 NS_DECL_NSIGFXINFODEBUG
57 virtual nsresult
GetFeatureStatusImpl(
58 int32_t aFeature
, int32_t* aStatus
, nsAString
& aSuggestedDriverVersion
,
59 const nsTArray
<GfxDriverInfo
>& aDriverInfo
, nsACString
& aFailureId
,
60 OperatingSystem
* aOS
= nullptr) override
;
61 virtual const nsTArray
<GfxDriverInfo
>& GetGfxDriverInfo() override
;
67 nsCString mAdapterDescription
;
70 bool mIsMesa
, mIsNVIDIA
, mIsFGLRX
, mIsNouveau
, mIsIntel
, mIsOldSwrast
,
72 bool mHasTextureFromPixmap
;
73 int mGLMajorVersion
, mMajorVersion
, mMinorVersion
, mRevisionVersion
;
75 void AddCrashReportAnnotations();
79 } // namespace mozilla
81 #endif /* __GfxInfoX11_h__ */