Bumping manifests a=b2g-bump
[gecko.git] / widget / GfxInfoX11.h
blob6aee1562875e768ab10b80773c658573bf8dd8dd
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"
13 namespace mozilla {
14 namespace widget {
16 class GfxInfo MOZ_FINAL : public GfxInfoBase
18 public:
20 // We only declare the subset of nsIGfxInfo that we actually implement. The
21 // rest is brought forward from GfxInfoBase.
22 NS_IMETHOD GetD2DEnabled(bool *aD2DEnabled);
23 NS_IMETHOD GetDWriteEnabled(bool *aDWriteEnabled);
24 NS_IMETHOD GetDWriteVersion(nsAString & aDwriteVersion);
25 NS_IMETHOD GetCleartypeParameters(nsAString & aCleartypeParams);
26 NS_IMETHOD GetAdapterDescription(nsAString & aAdapterDescription);
27 NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
28 NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
29 NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
30 NS_IMETHOD GetAdapterSubsysID(nsAString & aAdapterSubsysID);
31 NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
32 NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
33 NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
34 NS_IMETHOD GetAdapterDescription2(nsAString & aAdapterDescription);
35 NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
36 NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
37 NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
38 NS_IMETHOD GetAdapterSubsysID2(nsAString & aAdapterSubsysID);
39 NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
40 NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
41 NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
42 NS_IMETHOD GetIsGPU2Active(bool *aIsGPU2Active);
43 using GfxInfoBase::GetFeatureStatus;
44 using GfxInfoBase::GetFeatureSuggestedDriverVersion;
45 using GfxInfoBase::GetWebGLParameter;
47 virtual nsresult Init();
49 NS_IMETHOD_(void) GetData();
51 #ifdef DEBUG
52 NS_DECL_ISUPPORTS_INHERITED
53 NS_DECL_NSIGFXINFODEBUG
54 #endif
56 protected:
57 ~GfxInfo() {}
59 virtual nsresult GetFeatureStatusImpl(int32_t aFeature,
60 int32_t *aStatus,
61 nsAString & aSuggestedDriverVersion,
62 const nsTArray<GfxDriverInfo>& aDriverInfo,
63 OperatingSystem* aOS = nullptr);
64 virtual const nsTArray<GfxDriverInfo>& GetGfxDriverInfo();
66 private:
67 nsCString mVendor;
68 nsCString mRenderer;
69 nsCString mVersion;
70 nsCString mAdapterDescription;
71 nsCString mOS;
72 nsCString mOSRelease;
73 bool mIsMesa, mIsNVIDIA, mIsFGLRX, mIsNouveau, mIsIntel, mIsOldSwrast, mIsLlvmpipe;
74 bool mHasTextureFromPixmap;
75 int mGLMajorVersion, mMajorVersion, mMinorVersion, mRevisionVersion;
77 void AddCrashReportAnnotations();
80 } // namespace widget
81 } // namespace mozilla
83 #endif /* __GfxInfoX11_h__ */