Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(216)

Unified Diff: include/gpu/GrCoordTransform.h

Issue 657923002: Make GrFragmentProcessor auto-compare coord xforms. (Closed) Base URL: https://skia.googlesource.com/skia.git@key
Patch Set: Add \! Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/gpu/GrFragmentProcessor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/GrCoordTransform.h
diff --git a/include/gpu/GrCoordTransform.h b/include/gpu/GrCoordTransform.h
index db71ff11584c701ccb6c52f7f8cfd95a8b035c90..42598dd8c54474ad25f52281ef81dc2bdc539e5e 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; }
« no previous file with comments | « no previous file | include/gpu/GrFragmentProcessor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698