LCOV - code coverage report
Current view: directory - widget/xpwidgets - GfxInfoX11.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 1 100.0 %
Date: 2012-06-02 Functions: 3 3 100.0 %

       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                 :  * ***** BEGIN LICENSE BLOCK *****
       5                 :  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
       6                 :  *
       7                 :  * The contents of this file are subject to the Mozilla Public License Version
       8                 :  * 1.1 (the "License"); you may not use this file except in compliance with
       9                 :  * the License. You may obtain a copy of the License at
      10                 :  * http://www.mozilla.org/MPL/
      11                 :  *
      12                 :  * Software distributed under the License is distributed on an "AS IS" basis,
      13                 :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      14                 :  * for the specific language governing rights and limitations under the
      15                 :  * License.
      16                 :  *
      17                 :  * The Original Code is mozilla.org code.
      18                 :  *
      19                 :  * The Initial Developer of the Original Code is
      20                 :  * Mozilla Foundation.
      21                 :  * Portions created by the Initial Developer are Copyright (C) 2011
      22                 :  * the Initial Developer. All Rights Reserved.
      23                 :  *
      24                 :  * Contributor(s):
      25                 :  *
      26                 :  * Alternatively, the contents of this file may be used under the terms of
      27                 :  * either the GNU General Public License Version 2 or later (the "GPL"), or
      28                 :  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
      29                 :  * in which case the provisions of the GPL or the LGPL are applicable instead
      30                 :  * of those above. If you wish to allow use of your version of this file only
      31                 :  * under the terms of either the GPL or the LGPL, and not to allow others to
      32                 :  * use your version of this file under the terms of the MPL, indicate your
      33                 :  * decision by deleting the provisions above and replace them with the notice
      34                 :  * and other provisions required by the GPL or the LGPL. If you do not delete
      35                 :  * the provisions above, a recipient may use your version of this file under
      36                 :  * the terms of any one of the MPL, the GPL or the LGPL.
      37                 :  *
      38                 :  * ***** END LICENSE BLOCK ***** */
      39                 : 
      40                 : #ifndef __GfxInfoX11_h__
      41                 : #define __GfxInfoX11_h__
      42                 : 
      43                 : #include "GfxInfoBase.h"
      44                 : 
      45                 : namespace mozilla {
      46                 : namespace widget {
      47                 : 
      48                 : class GfxInfo : public GfxInfoBase
      49             130 : {
      50                 : public:
      51                 : 
      52                 :   // We only declare the subset of nsIGfxInfo that we actually implement. The
      53                 :   // rest is brought forward from GfxInfoBase.
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetD2DEnabled(bool *aD2DEnabled);
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetDWriteEnabled(bool *aDWriteEnabled);
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetAzureEnabled(bool *aAzureEnabled);
      57                 :   NS_SCRIPTABLE NS_IMETHOD GetDWriteVersion(nsAString & aDwriteVersion);
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetCleartypeParameters(nsAString & aCleartypeParams);
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterDescription(nsAString & aAdapterDescription);
      60                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterDriver(nsAString & aAdapterDriver);
      61                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterVendorID(nsAString & aAdapterVendorID);
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterDeviceID(nsAString & aAdapterDeviceID);
      63                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterRAM(nsAString & aAdapterRAM);
      64                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterDriverVersion(nsAString & aAdapterDriverVersion);
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterDriverDate(nsAString & aAdapterDriverDate);
      66                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterDescription2(nsAString & aAdapterDescription);
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterDriver2(nsAString & aAdapterDriver);
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterVendorID2(nsAString & aAdapterVendorID);
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterDeviceID2(nsAString & aAdapterDeviceID);
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterRAM2(nsAString & aAdapterRAM);
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterDriverVersion2(nsAString & aAdapterDriverVersion);
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetAdapterDriverDate2(nsAString & aAdapterDriverDate);
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetIsGPU2Active(bool *aIsGPU2Active);
      74                 :   using GfxInfoBase::GetFeatureStatus;
      75                 :   using GfxInfoBase::GetFeatureSuggestedDriverVersion;
      76                 :   using GfxInfoBase::GetWebGLParameter;
      77                 : 
      78                 :   virtual nsresult Init();
      79                 :   
      80                 :   NS_IMETHOD_(void) GetData();
      81                 : 
      82                 : #ifdef DEBUG
      83                 :   NS_DECL_ISUPPORTS_INHERITED
      84                 :   NS_DECL_NSIGFXINFODEBUG
      85                 : #endif
      86                 : 
      87                 : protected:
      88                 : 
      89                 :   virtual nsresult GetFeatureStatusImpl(PRInt32 aFeature, 
      90                 :                                         PRInt32 *aStatus, 
      91                 :                                         nsAString & aSuggestedDriverVersion, 
      92                 :                                         const nsTArray<GfxDriverInfo>& aDriverInfo, 
      93                 :                                         OperatingSystem* aOS = nsnull);
      94                 :   virtual const nsTArray<GfxDriverInfo>& GetGfxDriverInfo();
      95                 : 
      96                 : private:
      97                 :   nsCString mVendor;
      98                 :   nsCString mRenderer;
      99                 :   nsCString mVersion;
     100                 :   nsCString mAdapterDescription;
     101                 :   bool mIsMesa, mIsNVIDIA, mIsFGLRX, mIsNouveau;
     102                 :   bool mHasTextureFromPixmap;
     103                 :   int mGLMajorVersion, mMajorVersion, mMinorVersion, mRevisionVersion;
     104                 : 
     105                 :   void AddCrashReportAnnotations();
     106                 : };
     107                 : 
     108                 : } // namespace widget
     109                 : } // namespace mozilla
     110                 : 
     111                 : #endif /* __GfxInfoX11_h__ */

Generated by: LCOV version 1.7