aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl
diff options
context:
space:
mode:
authorGravatar Chris Dalton <csmartdalton@google.com>2018-02-22 13:41:37 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-22 21:06:05 +0000
commit2612baecd8c5b8deeaef18057a57562f45150023 (patch)
tree6dc6d1690d66d1136a51f9847e6f72d8dbc26c08 /src/gpu/gl
parentee77da2c0bb44b92409d5eaf2b7ae7530f650a24 (diff)
ccpr: Prefer atlas sizes under 4k on ARM
Bug: skia: Change-Id: Ib5afb84647efe2e64a3ec2f9da422b39228431e9 Reviewed-on: https://skia-review.googlesource.com/108871 Commit-Queue: Chris Dalton <csmartdalton@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/gl')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index d71194ed6f..3bdf5d0e60 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -483,6 +483,12 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
// Our render targets are always created with textures as the color
// attachment, hence this min:
fMaxRenderTargetSize = SkTMin(fMaxTextureSize, fMaxRenderTargetSize);
+ fMaxPreferredRenderTargetSize = fMaxRenderTargetSize;
+
+ if (kARM_GrGLVendor == ctxInfo.vendor()) {
+ // On Mali G71, RT's above 4k have been observed to incur a performance cost.
+ fMaxPreferredRenderTargetSize = SkTMin(4096, fMaxPreferredRenderTargetSize);
+ }
fGpuTracingSupport = ctxInfo.hasExtension("GL_EXT_debug_marker");