diff options
author | 2016-12-19 17:04:59 -0500 | |
---|---|---|
committer | 2016-12-20 14:30:52 +0000 | |
commit | c468963b967b5e8cde4ed320f7130a9d703c2a4e (patch) | |
tree | af2bf338de78a2c8f7f0290d81e3083f33c4bd03 /src/gpu/effects/GrTextureDomain.h | |
parent | 3711e1185d53aa70e56c28b5b6f74ab1590fd865 (diff) |
Respect color space in GrTextureDomainEffect
Forgot that this was plumbed in, but not being used. From local testing,
fixes color correctness in a variety of real world content.
BUG=skia:
Change-Id: Iad4cdf38da03719d1af144a9094c16d545139114
Reviewed-on: https://skia-review.googlesource.com/6296
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/effects/GrTextureDomain.h')
-rw-r--r-- | src/gpu/effects/GrTextureDomain.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gpu/effects/GrTextureDomain.h b/src/gpu/effects/GrTextureDomain.h index 644d14c7dd..72204b1f8e 100644 --- a/src/gpu/effects/GrTextureDomain.h +++ b/src/gpu/effects/GrTextureDomain.h @@ -13,6 +13,7 @@ #include "glsl/GrGLSLProgramDataManager.h" class GrGLProgramBuilder; +class GrGLSLColorSpaceXformHelper; class GrGLSLShaderBuilder; class GrInvariantOutput; class GrGLSLUniformHandler; @@ -120,7 +121,8 @@ public: const char* outColor, const SkString& inCoords, GrGLSLFragmentProcessor::SamplerHandle sampler, - const char* inModulateColor = nullptr); + const char* inModulateColor = nullptr, + GrGLSLColorSpaceXformHelper* colorXformHelper = nullptr); /** * Call this from GrGLSLFragmentProcessor::setData() to upload uniforms necessary for the |