diff options
author | bsalomon <bsalomon@google.com> | 2014-10-15 08:19:04 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-15 08:19:04 -0700 |
commit | 0e08fc17e4718f7ce4e38f793695896473e96948 (patch) | |
tree | e89b11a1a25f424312959368c7697883cea2155e /src/gpu/effects/GrConvexPolyEffect.cpp | |
parent | 157f36d358814a2235aa6284b78a67b725076063 (diff) |
Push isEqual/onIsEqual down from GrProcessor to subclasses.
R=joshualitt@google.com
Review URL: https://codereview.chromium.org/654273002
Diffstat (limited to 'src/gpu/effects/GrConvexPolyEffect.cpp')
-rw-r--r-- | src/gpu/effects/GrConvexPolyEffect.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/effects/GrConvexPolyEffect.cpp b/src/gpu/effects/GrConvexPolyEffect.cpp index 87d1286bbf..bafa64d13a 100644 --- a/src/gpu/effects/GrConvexPolyEffect.cpp +++ b/src/gpu/effects/GrConvexPolyEffect.cpp @@ -38,7 +38,7 @@ private: this->setWillReadFragmentPosition(); } - virtual bool onIsEqual(const GrProcessor& other) const SK_OVERRIDE { + virtual bool onIsEqual(const GrFragmentProcessor& other) const SK_OVERRIDE { const AARectEffect& aare = other.cast<AARectEffect>(); return fRect == aare.fRect; } @@ -348,7 +348,7 @@ GrConvexPolyEffect::GrConvexPolyEffect(GrPrimitiveEdgeType edgeType, int n, cons this->setWillReadFragmentPosition(); } -bool GrConvexPolyEffect::onIsEqual(const GrProcessor& other) const { +bool GrConvexPolyEffect::onIsEqual(const GrFragmentProcessor& other) const { const GrConvexPolyEffect& cpe = other.cast<GrConvexPolyEffect>(); // ignore the fact that 0 == -0 and just use memcmp. return (cpe.fEdgeType == fEdgeType && cpe.fEdgeCount == fEdgeCount && |