Bug 869696 - Add AdrenoTM205 to renderer enum. r=bjacob
authorChris Lord <chrislord.net@gmail.com>
Wed, 15 May 2013 16:43:22 +0100
changeset 143889 1caf7322f9189b287a2a7cf917ea332226cf846c
parent 143888 908f7d92b2acf71556567dad0b7ad6351f6b7b2b
child 143890 e0e9b99639f82c956a6eaf2d2195dc61e97a0faf
push id2697
push userbbajaj@mozilla.com
push dateMon, 05 Aug 2013 18:49:53 +0000
treeherdermozilla-beta@dfec938c7b63 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs869696
milestone24.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 869696 - Add AdrenoTM205 to renderer enum. r=bjacob Add the 'Adreno (TM) 205' renderer string to the renderer enum in GLContext.
gfx/gl/GLContext.cpp
gfx/gl/GLContext.h
--- a/gfx/gl/GLContext.cpp
+++ b/gfx/gl/GLContext.cpp
@@ -347,16 +347,17 @@ GLContext::InitWithPrefix(const char *pr
         // defined in GLContext.h for renderer IDs
         glRendererString = (const char *)fGetString(LOCAL_GL_RENDERER);
         if (!glRendererString)
             mInitialized = false;
 
         const char *rendererMatchStrings[RendererOther] = {
                 "Adreno 200",
                 "Adreno 205",
+                "Adreno (TM) 205",
                 "Adreno (TM) 320",
                 "PowerVR SGX 530",
                 "PowerVR SGX 540"
         };
 
         mRenderer = RendererOther;
         for (int i = 0; i < RendererOther; ++i) {
             if (DoesStringMatch(glRendererString, rendererMatchStrings[i])) {
--- a/gfx/gl/GLContext.h
+++ b/gfx/gl/GLContext.h
@@ -292,17 +292,18 @@ public:
         VendorImagination,
         VendorNouveau,
         VendorOther
     };
 
     enum {
         RendererAdreno200,
         RendererAdreno205,
-        RendererAdreno320,
+        RendererAdrenoTM205,
+        RendererAdrenoTM320,
         RendererSGX530,
         RendererSGX540,
         RendererOther
     };
 
     int Vendor() const {
         return mVendor;
     }