From 420d7e9a79358908850c74192b4949375563449a Mon Sep 17 00:00:00 2001 From: bsalomon Date: Thu, 16 Oct 2014 09:18:09 -0700 Subject: Auto-compare GrProcessors' texture accesses in isEqual(). R=joshualitt@google.com Review URL: https://codereview.chromium.org/654313002 --- src/effects/gradients/SkGradientShader.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/effects/gradients') diff --git a/src/effects/gradients/SkGradientShader.cpp b/src/effects/gradients/SkGradientShader.cpp index f131d72f23..9dce5c2e0f 100644 --- a/src/effects/gradients/SkGradientShader.cpp +++ b/src/effects/gradients/SkGradientShader.cpp @@ -1202,10 +1202,8 @@ bool GrGradientEffect::onIsEqual(const GrFragmentProcessor& processor) const { } } - return fTextureAccess.getTexture() == s.fTextureAccess.getTexture() && - fTextureAccess.getParams().getTileModeX() == - s.fTextureAccess.getParams().getTileModeX() && - this->useAtlas() == s.useAtlas(); + SkASSERT(this->useAtlas() == s.useAtlas()); + return true; } return false; -- cgit v1.2.3