aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-01 00:40:47 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-11-01 00:40:47 +0000
commitf7ee05fa9db20cf16c4704bac63086feb998bc05 (patch)
treef84083827b4c418175e1f665a69cbb0991f935bb /src
parent7124abdf861bda913554473d849c0d7aa5fbccb5 (diff)
Turn on don't-reuse-scratch-textures for all Android devices
Diffstat (limited to 'src')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp4
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) {