Index: src/gpu/gl/GrGLUtil.cpp |
diff --git a/src/gpu/gl/GrGLUtil.cpp b/src/gpu/gl/GrGLUtil.cpp |
index 9f7b05a3c900853dc981a13289bfa52b7af30cb4..0a17c19c2a7be2a253c14bceba524f32cc0c0e2c 100644 |
--- a/src/gpu/gl/GrGLUtil.cpp |
+++ b/src/gpu/gl/GrGLUtil.cpp |
@@ -214,6 +214,18 @@ GrGLRenderer GrGLGetRendererFromString(const char* rendererString) { |
SK_ARRAY_COUNT(kPowerVRRogueStr)-1)) { |
return kPowerVRRogue_GrGLRenderer; |
} |
+ int adrenoNumber; |
+ n = sscanf(rendererString, "Adreno (TM) %d", &adrenoNumber); |
+ if (1 == n) { |
+ if (adrenoNumber >= 300) { |
+ if (adrenoNumber < 400) { |
+ return kAdreno3xx_GrGLRenderer; |
+ } |
+ if (adrenoNumber < 500) { |
+ return kAdreno4xx_GrGLRenderer; |
+ } |
+ } |
+ } |
} |
return kOther_GrGLRenderer; |
} |