widget/gonk/GfxInfo.h

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:cb14acee35c1
1 /* vim: se cin sw=2 ts=2 et : */
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
3 *
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/. */
7
8 #ifndef __mozilla_widget_GfxInfo_h__
9 #define __mozilla_widget_GfxInfo_h__
10
11 #include "GfxInfoBase.h"
12 #include "GfxDriverInfo.h"
13
14 #include "nsString.h"
15
16 namespace mozilla {
17 namespace widget {
18
19 class GfxInfo : public GfxInfoBase
20 {
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 GetAdapterRAM(nsAString & aAdapterRAM);
33 NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
34 NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
35 NS_IMETHOD GetAdapterDescription2(nsAString & aAdapterDescription);
36 NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
37 NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
38 NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
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;
46
47 virtual uint32_t OperatingSystemVersion() MOZ_OVERRIDE;
48
49 #ifdef DEBUG
50 NS_DECL_NSIGFXINFODEBUG
51 #endif
52
53 protected:
54
55 virtual nsresult GetFeatureStatusImpl(int32_t aFeature,
56 int32_t *aStatus,
57 nsAString & aSuggestedDriverVersion,
58 const nsTArray<GfxDriverInfo>& aDriverInfo,
59 OperatingSystem* aOS = nullptr);
60 virtual const nsTArray<GfxDriverInfo>& GetGfxDriverInfo();
61 };
62
63 } // namespace widget
64 } // namespace mozilla
65
66 #endif /* __mozilla_widget_GfxInfo_h__ */

mercurial