Only disable scratch texture reuse on the N10 and N4
https://codereview.chromium.org/48903017/
git-svn-id: http://skia.googlecode.com/svn/trunk@12080 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index 6065c6d..17e7b69 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -312,11 +312,10 @@
ctxInfo.hasExtension("GL_NV_path_rendering");
fDstReadInShaderSupport = kNone_FBFetchType != fFBFetchType;
-#ifdef SK_BUILD_FOR_ANDROID
- fReuseScratchTextures = false;
-#else
- fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor();
-#endif
+
+ // Disable scratch texture reuse on Mali and Adreno devices
+ fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor() &&
+ kQualcomm_GrGLVendor != ctxInfo.vendor();
// Enable supported shader-related caps
if (kDesktop_GrGLBinding == binding) {