diff options
author | 2014-10-15 19:06:21 -0700 | |
---|---|---|
committer | 2014-10-15 19:06:21 -0700 | |
commit | de258cd6b402c4da78b66e88191ad02162d87916 (patch) | |
tree | 1b91ff3c8a2c58a482d8bbeb32275a820ea3611c /include/gpu/GrCoordTransform.h | |
parent | 000f829f14a9535a005082731af5de1526284c83 (diff) |
Make GrFragmentProcessor auto-compare coord xforms.
Review URL: https://codereview.chromium.org/657923002
Diffstat (limited to 'include/gpu/GrCoordTransform.h')
-rw-r--r-- | include/gpu/GrCoordTransform.h | 10 |
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; } |