diff options
author | 2016-05-05 11:52:53 -0700 | |
---|---|---|
committer | 2016-05-05 11:52:53 -0700 | |
commit | 35b784d48f59be3a3ee28d9d73e03c7f8835d2f9 (patch) | |
tree | c7d583ff9b4d8313ba8c5be2fd688f57ad72b52a /src/gpu/gl/GrGLGpu.cpp | |
parent | c34323549d6cf87691a6db2dd4999e8beaf082fe (diff) |
Bring back sRGB-write-control as a caps bit.
We're not going to support this on Vulkan (yet), but want to still
have it as an option for GL. (The fallback alternative for our YUV use
case involves injecting expensive fragment shader code, which we'd like
to avoid).
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1955603003
Review-Url: https://codereview.chromium.org/1955603003
Diffstat (limited to 'src/gpu/gl/GrGLGpu.cpp')
-rw-r--r-- | src/gpu/gl/GrGLGpu.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp index 027d9527c0..40d0e488d5 100644 --- a/src/gpu/gl/GrGLGpu.cpp +++ b/src/gpu/gl/GrGLGpu.cpp @@ -2639,7 +2639,7 @@ void GrGLGpu::flushRenderTarget(GrGLRenderTarget* target, const SkIRect* bounds, this->flushViewport(target->getViewport()); } - if (this->glCaps().srgbSupport()) { + if (this->glCaps().srgbWriteControl()) { bool enableSRGBWrite = GrPixelConfigIsSRGB(target->config()) && !disableSRGB; if (enableSRGBWrite && kYes_TriState != fHWSRGBFramebuffer) { GL_CALL(Enable(GR_GL_FRAMEBUFFER_SRGB)); |