aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrCoordTransform.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2014-10-15 19:06:21 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-15 19:06:21 -0700
commitde258cd6b402c4da78b66e88191ad02162d87916 (patch)
tree1b91ff3c8a2c58a482d8bbeb32275a820ea3611c /include/gpu/GrCoordTransform.h
parent000f829f14a9535a005082731af5de1526284c83 (diff)
Make GrFragmentProcessor auto-compare coord xforms.
Diffstat (limited to 'include/gpu/GrCoordTransform.h')
-rw-r--r--include/gpu/GrCoordTransform.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/include/gpu/GrCoordTransform.h b/include/gpu/GrCoordTransform.h
index db71ff1158..42598dd8c5 100644
--- a/include/gpu/GrCoordTransform.h
+++ b/include/gpu/GrCoordTransform.h
@@ -91,12 +91,14 @@ public:
return &fMatrix;
}
- bool operator== (const GrCoordTransform& other) const {
- return fSourceCoords == other.fSourceCoords &&
- fMatrix.cheapEqualTo(other.fMatrix) &&
- fReverseY == other.fReverseY;
+ bool operator== (const GrCoordTransform& that) const {
+ return fSourceCoords == that.fSourceCoords &&
+ fMatrix.cheapEqualTo(that.fMatrix) &&
+ fReverseY == that.fReverseY;
}
+ bool operator!= (const GrCoordTransform& that) const { return !(*this == that); }
+
GrCoordSet sourceCoords() const { return fSourceCoords; }
const SkMatrix& getMatrix() const { return fMatrix; }
bool reverseY() const { return fReverseY; }