diff options
author | 2013-11-01 00:40:47 +0000 | |
---|---|---|
committer | 2013-11-01 00:40:47 +0000 | |
commit | f7ee05fa9db20cf16c4704bac63086feb998bc05 (patch) | |
tree | f84083827b4c418175e1f665a69cbb0991f935bb /src | |
parent | 7124abdf861bda913554473d849c0d7aa5fbccb5 (diff) |
Turn on don't-reuse-scratch-textures for all Android devices
https://codereview.chromium.org/54493005/
git-svn-id: http://skia.googlecode.com/svn/trunk@12069 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index 60c0dfaf10..a2bad9aec9 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -312,7 +312,11 @@ 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 = true; +#else fReuseScratchTextures = kARM_GrGLVendor != ctxInfo.vendor(); +#endif // Enable supported shader-related caps if (kDesktop_GrGLBinding == binding) { |