/* vim: se cin sw=2 ts=2 et : *//* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */#ifndef __GfxInfoX11_h__#define __GfxInfoX11_h__#include"GfxInfoBase.h"namespacemozilla{namespacewidget{classGfxInfofinal:publicGfxInfoBase{public:// We only declare the subset of nsIGfxInfo that we actually implement. The// rest is brought forward from GfxInfoBase.NS_IMETHODGetD2DEnabled(bool*aD2DEnabled)override;NS_IMETHODGetDWriteEnabled(bool*aDWriteEnabled)override;NS_IMETHODGetDWriteVersion(nsAString&aDwriteVersion)override;NS_IMETHODGetCleartypeParameters(nsAString&aCleartypeParams)override;NS_IMETHODGetAdapterDescription(nsAString&aAdapterDescription)override;NS_IMETHODGetAdapterDriver(nsAString&aAdapterDriver)override;NS_IMETHODGetAdapterVendorID(nsAString&aAdapterVendorID)override;NS_IMETHODGetAdapterDeviceID(nsAString&aAdapterDeviceID)override;NS_IMETHODGetAdapterSubsysID(nsAString&aAdapterSubsysID)override;NS_IMETHODGetAdapterRAM(nsAString&aAdapterRAM)override;NS_IMETHODGetAdapterDriverVersion(nsAString&aAdapterDriverVersion)override;NS_IMETHODGetAdapterDriverDate(nsAString&aAdapterDriverDate)override;NS_IMETHODGetAdapterDescription2(nsAString&aAdapterDescription)override;NS_IMETHODGetAdapterDriver2(nsAString&aAdapterDriver)override;NS_IMETHODGetAdapterVendorID2(nsAString&aAdapterVendorID)override;NS_IMETHODGetAdapterDeviceID2(nsAString&aAdapterDeviceID)override;NS_IMETHODGetAdapterSubsysID2(nsAString&aAdapterSubsysID)override;NS_IMETHODGetAdapterRAM2(nsAString&aAdapterRAM)override;NS_IMETHODGetAdapterDriverVersion2(nsAString&aAdapterDriverVersion)override;NS_IMETHODGetAdapterDriverDate2(nsAString&aAdapterDriverDate)override;NS_IMETHODGetIsGPU2Active(bool*aIsGPU2Active)override;usingGfxInfoBase::GetFeatureStatus;usingGfxInfoBase::GetFeatureSuggestedDriverVersion;virtualnsresultInit()override;NS_IMETHOD_(void)GetData()override;#ifdef DEBUGNS_DECL_ISUPPORTS_INHERITEDNS_DECL_NSIGFXINFODEBUG#endifprotected:~GfxInfo(){}virtualnsresultGetFeatureStatusImpl(int32_taFeature,int32_t*aStatus,nsAString&aSuggestedDriverVersion,constnsTArray<GfxDriverInfo>&aDriverInfo,nsACString&aFailureId,OperatingSystem*aOS=nullptr)override;virtualconstnsTArray<GfxDriverInfo>&GetGfxDriverInfo()override;private:nsCStringmVendor;nsCStringmRenderer;nsCStringmVersion;nsCStringmAdapterDescription;nsCStringmOS;nsCStringmOSRelease;boolmIsMesa,mIsNVIDIA,mIsFGLRX,mIsNouveau,mIsIntel,mIsOldSwrast,mIsLlvmpipe;boolmHasTextureFromPixmap;intmGLMajorVersion,mMajorVersion,mMinorVersion,mRevisionVersion;voidAddCrashReportAnnotations();};}// namespace widget}// namespace mozilla#endif /* __GfxInfoX11_h__ */