diff options
author | bsalomon <bsalomon@google.com> | 2014-10-16 09:18:09 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-16 09:18:09 -0700 |
commit | 420d7e9a79358908850c74192b4949375563449a (patch) | |
tree | f3b37d543e37ac16ac99041a0ee28be02dcc77df /src/effects/gradients | |
parent | 6c4b51d3ca18129889c962a342e681ebdd93c79c (diff) |
Auto-compare GrProcessors' texture accesses in isEqual().
R=joshualitt@google.com
Review URL: https://codereview.chromium.org/654313002
Diffstat (limited to 'src/effects/gradients')
-rw-r--r-- | src/effects/gradients/SkGradientShader.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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; |