diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-01 15:03:34 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-01 15:03:34 +0000 |
commit | 8995b7b626314ba82674aacc9a480c9f3d820fe4 (patch) | |
tree | 11ce739ac4962f80083c2a209d5a7de3808efe18 /src | |
parent | 7b1c2c102ef3f7a1467fe061cd23dfdb9baf646a (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index 6065c6d3d0..17e7b69fda 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -312,11 +312,10 @@ void GrGLCaps::init(const GrGLContextInfo& ctxInfo, const GrGLInterface* gli) { 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) { |