widget/gonk/GfxInfo.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/widget/gonk/GfxInfo.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,66 @@
     1.4 +/* vim: se cin sw=2 ts=2 et : */
     1.5 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
     1.6 + *
     1.7 + * This Source Code Form is subject to the terms of the Mozilla Public
     1.8 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.9 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
    1.10 +
    1.11 +#ifndef __mozilla_widget_GfxInfo_h__
    1.12 +#define __mozilla_widget_GfxInfo_h__
    1.13 +
    1.14 +#include "GfxInfoBase.h"
    1.15 +#include "GfxDriverInfo.h"
    1.16 +
    1.17 +#include "nsString.h"
    1.18 +
    1.19 +namespace mozilla {
    1.20 +namespace widget {
    1.21 +
    1.22 +class GfxInfo : public GfxInfoBase
    1.23 +{
    1.24 +public:
    1.25 +  // We only declare the subset of nsIGfxInfo that we actually implement. The
    1.26 +  // rest is brought forward from GfxInfoBase.
    1.27 +  NS_IMETHOD GetD2DEnabled(bool *aD2DEnabled);
    1.28 +  NS_IMETHOD GetDWriteEnabled(bool *aDWriteEnabled);
    1.29 +  NS_IMETHOD GetDWriteVersion(nsAString & aDwriteVersion);
    1.30 +  NS_IMETHOD GetCleartypeParameters(nsAString & aCleartypeParams);
    1.31 +  NS_IMETHOD GetAdapterDescription(nsAString & aAdapterDescription);
    1.32 +  NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
    1.33 +  NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
    1.34 +  NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
    1.35 +  NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
    1.36 +  NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
    1.37 +  NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
    1.38 +  NS_IMETHOD GetAdapterDescription2(nsAString & aAdapterDescription);
    1.39 +  NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
    1.40 +  NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
    1.41 +  NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
    1.42 +  NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
    1.43 +  NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
    1.44 +  NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
    1.45 +  NS_IMETHOD GetIsGPU2Active(bool *aIsGPU2Active);
    1.46 +  using GfxInfoBase::GetFeatureStatus;
    1.47 +  using GfxInfoBase::GetFeatureSuggestedDriverVersion;
    1.48 +  using GfxInfoBase::GetWebGLParameter;
    1.49 +
    1.50 +  virtual uint32_t OperatingSystemVersion() MOZ_OVERRIDE;
    1.51 +
    1.52 +#ifdef DEBUG
    1.53 +  NS_DECL_NSIGFXINFODEBUG
    1.54 +#endif
    1.55 +
    1.56 +protected:
    1.57 +
    1.58 +  virtual nsresult GetFeatureStatusImpl(int32_t aFeature,
    1.59 +                                        int32_t *aStatus,
    1.60 +                                        nsAString & aSuggestedDriverVersion,
    1.61 +                                        const nsTArray<GfxDriverInfo>& aDriverInfo,
    1.62 +                                        OperatingSystem* aOS = nullptr);
    1.63 +  virtual const nsTArray<GfxDriverInfo>& GetGfxDriverInfo();
    1.64 +};
    1.65 +
    1.66 +} // namespace widget
    1.67 +} // namespace mozilla
    1.68 +
    1.69 +#endif /* __mozilla_widget_GfxInfo_h__ */

mercurial