Chromium Code Reviews| Index: src/gpu/gl/GrGLUtil.cpp |
| diff --git a/src/gpu/gl/GrGLUtil.cpp b/src/gpu/gl/GrGLUtil.cpp |
| index 71d54c35c060ab14aad9efbf954fb43e0f74aadf..b5e58554018c0560fa9fe176eb296c06f8e7bfb6 100644 |
| --- a/src/gpu/gl/GrGLUtil.cpp |
| +++ b/src/gpu/gl/GrGLUtil.cpp |
| @@ -261,9 +261,27 @@ GrGLRenderer GrGLGetRendererFromString(const char* rendererString) { |
| if (1 == n && lastDigit >= 0 && lastDigit <= 9) { |
| return kPowerVR54x_GrGLRenderer; |
| } |
| + // certain iOS devices also use PowerVR54x GPUs |
| + static const char kAppleA4Str[] = "Apple A4"; |
|
bsalomon
2015/12/10 16:45:28
I think these report PowerVR, but can't hurt
|
| + static const char kAppleA5Str[] = "Apple A5"; |
| + static const char kAppleA6Str[] = "Apple A6"; |
| + if (0 == strncmp(rendererString, kAppleA4Str, |
| + SK_ARRAY_COUNT(kAppleA4Str)-1) || |
| + 0 == strncmp(rendererString, kAppleA5Str, |
| + SK_ARRAY_COUNT(kAppleA5Str)-1) || |
| + 0 == strncmp(rendererString, kAppleA6Str, |
| + SK_ARRAY_COUNT(kAppleA6Str)-1)) { |
| + return kPowerVR54x_GrGLRenderer; |
| + } |
| static const char kPowerVRRogueStr[] = "PowerVR Rogue"; |
| + static const char kAppleA7Str[] = "Apple A7"; |
| + static const char kAppleA8Str[] = "Apple A8"; |
| if (0 == strncmp(rendererString, kPowerVRRogueStr, |
| - SK_ARRAY_COUNT(kPowerVRRogueStr)-1)) { |
| + SK_ARRAY_COUNT(kPowerVRRogueStr)-1) || |
| + 0 == strncmp(rendererString, kAppleA7Str, |
| + SK_ARRAY_COUNT(kAppleA7Str)-1) || |
| + 0 == strncmp(rendererString, kAppleA8Str, |
| + SK_ARRAY_COUNT(kAppleA8Str)-1)) { |
| return kPowerVRRogue_GrGLRenderer; |
| } |
| int adrenoNumber; |