diff options
author | 2014-10-16 09:18:09 -0700 | |
---|---|---|
committer | 2014-10-16 09:18:09 -0700 | |
commit | 420d7e9a79358908850c74192b4949375563449a (patch) | |
tree | f3b37d543e37ac16ac99041a0ee28be02dcc77df /src/gpu/effects/GrConvolutionEffect.cpp | |
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/gpu/effects/GrConvolutionEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrConvolutionEffect.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gpu/effects/GrConvolutionEffect.cpp b/src/gpu/effects/GrConvolutionEffect.cpp index 9776a2af5f..310e531aff 100644 --- a/src/gpu/effects/GrConvolutionEffect.cpp +++ b/src/gpu/effects/GrConvolutionEffect.cpp @@ -202,8 +202,7 @@ const GrBackendFragmentProcessorFactory& GrConvolutionEffect::getFactory() const bool GrConvolutionEffect::onIsEqual(const GrFragmentProcessor& sBase) const { const GrConvolutionEffect& s = sBase.cast<GrConvolutionEffect>(); - return (this->texture(0) == s.texture(0) && - this->radius() == s.radius() && + return (this->radius() == s.radius() && this->direction() == s.direction() && this->useBounds() == s.useBounds() && 0 == memcmp(fBounds, s.fBounds, sizeof(fBounds)) && |