aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/effects/GrYUVtoRGBEffect.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-16 09:18:09 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-16 09:18:09 -0700
commit420d7e9a79358908850c74192b4949375563449a (patch)
treef3b37d543e37ac16ac99041a0ee28be02dcc77df /src/gpu/effects/GrYUVtoRGBEffect.cpp
parent6c4b51d3ca18129889c962a342e681ebdd93c79c (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/GrYUVtoRGBEffect.cpp')
-rw-r--r--src/gpu/effects/GrYUVtoRGBEffect.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gpu/effects/GrYUVtoRGBEffect.cpp b/src/gpu/effects/GrYUVtoRGBEffect.cpp
index b18bd7fa01..f02c1b2295 100644
--- a/src/gpu/effects/GrYUVtoRGBEffect.cpp
+++ b/src/gpu/effects/GrYUVtoRGBEffect.cpp
@@ -103,10 +103,7 @@ private:
virtual bool onIsEqual(const GrFragmentProcessor& sBase) const {
const YUVtoRGBEffect& s = sBase.cast<YUVtoRGBEffect>();
- return fYAccess.getTexture() == s.fYAccess.getTexture() &&
- fUAccess.getTexture() == s.fUAccess.getTexture() &&
- fVAccess.getTexture() == s.fVAccess.getTexture() &&
- fColorSpace == s.getColorSpace();
+ return fColorSpace == s.getColorSpace();
}
virtual void onComputeInvariantOutput(InvariantOutput* inout) const SK_OVERRIDE {