Add color space xform bits to key for texture domain effect
authorBrian Osman <brianosman@google.com>
Tue, 20 Dec 2016 20:06:18 +0000 (15:06 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 20 Dec 2016 20:36:12 +0000 (20:36 +0000)
Overlooked this in a recent CL

BUG=skia:

Change-Id: I050f8843cc2a8caadc2a46f1ea833b74b47f76b7
Reviewed-on: https://skia-review.googlesource.com/6341
Reviewed-by: Robert Phillips <robertphillips@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>

src/gpu/effects/GrTextureDomain.cpp

index c9bf54594cb81821675d2b33500139acd81c9cb9..c6ff9f73e4529ca6075a1b36887418088444d1d2 100644 (file)
@@ -204,6 +204,7 @@ GrTextureDomainEffect::GrTextureDomainEffect(GrTexture* texture,
 void GrTextureDomainEffect::onGetGLSLProcessorKey(const GrShaderCaps& caps,
                                                   GrProcessorKeyBuilder* b) const {
     b->add32(GrTextureDomain::GLDomain::DomainKey(fTextureDomain));
+    b->add32(GrColorSpaceXform::XformKey(this->colorSpaceXform()));
 }
 
 GrGLSLFragmentProcessor* GrTextureDomainEffect::onCreateGLSLInstance() const  {