aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-07-30 16:27:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-30 16:27:50 -0700
commit58b4395b22eb0620605ff0674c6d1254ecd51374 (patch)
tree87cfc47b70a867810bf31ed862e8dbd981f82761 /src
parent2aad5f1e6ac0aecc9f35cea7e6b02cc3e9d51da3 (diff)
Disable SRGB support on PowerVR Rogue due to SRGBReadWritePixels failure
TBR=jvanverth@google.com BUG=skia:4148 Review URL: https://codereview.chromium.org/1266933002
Diffstat (limited to 'src')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index 161dac6e9f..b0f6f2fcf7 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -206,8 +206,9 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
// All the above srgb extensions support toggling srgb writes
fSRGBWriteControl = srgbSupport;
} else {
- srgbSupport = ctxInfo.version() >= GR_GL_VER(3,0) ||
- ctxInfo.hasExtension("GL_EXT_sRGB");
+ // See http://skbug.com/4148 for PowerVR issue.
+ srgbSupport = kPowerVRRogue_GrGLRenderer != ctxInfo.renderer() &&
+ (ctxInfo.version() >= GR_GL_VER(3,0) || ctxInfo.hasExtension("GL_EXT_sRGB"));
// ES through 3.1 requires EXT_srgb_write_control to support toggling
// sRGB writing for destinations.
fSRGBWriteControl = ctxInfo.hasExtension("GL_EXT_sRGB_write_control");