aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrTextureDomain.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2016-12-19 17:04:59 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-12-20 14:30:52 +0000
commitc468963b967b5e8cde4ed320f7130a9d703c2a4e (patch)
treeaf2bf338de78a2c8f7f0290d81e3083f33c4bd03 /src/gpu/effects/GrTextureDomain.h
parent3711e1185d53aa70e56c28b5b6f74ab1590fd865 (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.h4
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