From a7c4c29abfee3b17f1ba0e6c6b1f98b6fb9cd2b8 Mon Sep 17 00:00:00 2001 From: Brian Salomon Date: Thu, 17 Nov 2016 12:47:06 -0500 Subject: Remove unnecessary TextureSampler comparison in GrTextureDomainEffect. The base class already performs this comparison. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4960 Change-Id: Ic2a46e05f05ba36b291c05e324aa29b4aad15c23 Reviewed-on: https://skia-review.googlesource.com/4960 Reviewed-by: Greg Daniel Commit-Queue: Brian Salomon --- src/gpu/effects/GrTextureDomain.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gpu/effects') diff --git a/src/gpu/effects/GrTextureDomain.cpp b/src/gpu/effects/GrTextureDomain.cpp index 4418730961..4d163b88d3 100644 --- a/src/gpu/effects/GrTextureDomain.cpp +++ b/src/gpu/effects/GrTextureDomain.cpp @@ -242,8 +242,7 @@ GrGLSLFragmentProcessor* GrTextureDomainEffect::onCreateGLSLInstance() const { bool GrTextureDomainEffect::onIsEqual(const GrFragmentProcessor& sBase) const { const GrTextureDomainEffect& s = sBase.cast(); - return this->fTextureDomain == s.fTextureDomain && - s.textureSampler(0) == this->textureSampler(0); + return this->fTextureDomain == s.fTextureDomain; } void GrTextureDomainEffect::onComputeInvariantOutput(GrInvariantOutput* inout) const { -- cgit v1.2.3