michael@0: /* vim: se cin sw=2 ts=2 et : */ michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- michael@0: * michael@0: * This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef __GfxInfoX11_h__ michael@0: #define __GfxInfoX11_h__ michael@0: michael@0: #include "GfxInfoBase.h" michael@0: michael@0: namespace mozilla { michael@0: namespace widget { michael@0: michael@0: class GfxInfo : public GfxInfoBase michael@0: { michael@0: public: michael@0: michael@0: // We only declare the subset of nsIGfxInfo that we actually implement. The michael@0: // rest is brought forward from GfxInfoBase. michael@0: NS_IMETHOD GetD2DEnabled(bool *aD2DEnabled); michael@0: NS_IMETHOD GetDWriteEnabled(bool *aDWriteEnabled); michael@0: NS_IMETHOD GetDWriteVersion(nsAString & aDwriteVersion); michael@0: NS_IMETHOD GetCleartypeParameters(nsAString & aCleartypeParams); michael@0: NS_IMETHOD GetAdapterDescription(nsAString & aAdapterDescription); michael@0: NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver); michael@0: NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID); michael@0: NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID); michael@0: NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM); michael@0: NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion); michael@0: NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate); michael@0: NS_IMETHOD GetAdapterDescription2(nsAString & aAdapterDescription); michael@0: NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver); michael@0: NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID); michael@0: NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID); michael@0: NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM); michael@0: NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion); michael@0: NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate); michael@0: NS_IMETHOD GetIsGPU2Active(bool *aIsGPU2Active); michael@0: using GfxInfoBase::GetFeatureStatus; michael@0: using GfxInfoBase::GetFeatureSuggestedDriverVersion; michael@0: using GfxInfoBase::GetWebGLParameter; michael@0: michael@0: virtual nsresult Init(); michael@0: michael@0: NS_IMETHOD_(void) GetData(); michael@0: michael@0: #ifdef DEBUG michael@0: NS_DECL_ISUPPORTS_INHERITED michael@0: NS_DECL_NSIGFXINFODEBUG michael@0: #endif michael@0: michael@0: protected: michael@0: michael@0: virtual nsresult GetFeatureStatusImpl(int32_t aFeature, michael@0: int32_t *aStatus, michael@0: nsAString & aSuggestedDriverVersion, michael@0: const nsTArray& aDriverInfo, michael@0: OperatingSystem* aOS = nullptr); michael@0: virtual const nsTArray& GetGfxDriverInfo(); michael@0: michael@0: private: michael@0: nsCString mVendor; michael@0: nsCString mRenderer; michael@0: nsCString mVersion; michael@0: nsCString mAdapterDescription; michael@0: nsCString mOS; michael@0: nsCString mOSRelease; michael@0: bool mIsMesa, mIsNVIDIA, mIsFGLRX, mIsNouveau, mIsIntel, mIsOldSwrast, mIsLlvmpipe; michael@0: bool mHasTextureFromPixmap; michael@0: int mGLMajorVersion, mMajorVersion, mMinorVersion, mRevisionVersion; michael@0: michael@0: void AddCrashReportAnnotations(); michael@0: }; michael@0: michael@0: } // namespace widget michael@0: } // namespace mozilla michael@0: michael@0: #endif /* __GfxInfoX11_h__ */