Bumping manifests a=b2g-bump
[gecko.git] / widget / gonk / GfxInfo.h
blob84828663fc8109989aecfc173b8a282400cd0b00
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"
14 #include "nsString.h"
16 namespace mozilla {
17 namespace widget {
19 class GfxInfo : public GfxInfoBase
21 public:
22 // We only declare the subset of nsIGfxInfo that we actually implement. The
23 // rest is brought forward from GfxInfoBase.
24 NS_IMETHOD GetD2DEnabled(bool *aD2DEnabled);
25 NS_IMETHOD GetDWriteEnabled(bool *aDWriteEnabled);
26 NS_IMETHOD GetDWriteVersion(nsAString & aDwriteVersion);
27 NS_IMETHOD GetCleartypeParameters(nsAString & aCleartypeParams);
28 NS_IMETHOD GetAdapterDescription(nsAString & aAdapterDescription);
29 NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
30 NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
31 NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
32 NS_IMETHOD GetAdapterSubsysID(nsAString & aAdapterSubsysID);
33 NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
34 NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
35 NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
36 NS_IMETHOD GetAdapterDescription2(nsAString & aAdapterDescription);
37 NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
38 NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
39 NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
40 NS_IMETHOD GetAdapterSubsysID2(nsAString & aAdapterSubsysID);
41 NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
42 NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
43 NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
44 NS_IMETHOD GetIsGPU2Active(bool *aIsGPU2Active);
45 using GfxInfoBase::GetFeatureStatus;
46 using GfxInfoBase::GetFeatureSuggestedDriverVersion;
47 using GfxInfoBase::GetWebGLParameter;
49 virtual uint32_t OperatingSystemVersion() MOZ_OVERRIDE;
51 #ifdef DEBUG
52 NS_DECL_NSIGFXINFODEBUG
53 #endif
55 protected:
57 virtual nsresult GetFeatureStatusImpl(int32_t aFeature,
58 int32_t *aStatus,
59 nsAString & aSuggestedDriverVersion,
60 const nsTArray<GfxDriverInfo>& aDriverInfo,
61 OperatingSystem* aOS = nullptr);
62 virtual const nsTArray<GfxDriverInfo>& GetGfxDriverInfo();
65 } // namespace widget
66 } // namespace mozilla
68 #endif /* __mozilla_widget_GfxInfo_h__ */