Index: include/core/SkStrokeRec.h |
diff --git a/include/core/SkStrokeRec.h b/include/core/SkStrokeRec.h |
index c5b47c25dd903d9010312762c23145e810d252f8..1e0ec880f7fafc8aa37f857be75443dc8f39e962 100644 |
--- a/include/core/SkStrokeRec.h |
+++ b/include/core/SkStrokeRec.h |
@@ -81,6 +81,14 @@ public: |
*/ |
bool applyToPath(SkPath* dst, const SkPath& src) const; |
+ bool operator==(const SkStrokeRec& other) const { |
+ return fWidth == other.fWidth && |
+ fMiterLimit == other.fMiterLimit && |
+ fCap == other.fCap && |
+ fJoin == other.fJoin && |
+ fStrokeAndFill == other.fStrokeAndFill; |
+ } |
+ |
private: |
SkScalar fWidth; |
SkScalar fMiterLimit; |