diff options
Diffstat (limited to 'include/core/SkClipStack.h')
-rw-r--r-- | include/core/SkClipStack.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/core/SkClipStack.h b/include/core/SkClipStack.h index 850a3f0..ae0b974 100644 --- a/include/core/SkClipStack.h +++ b/include/core/SkClipStack.h @@ -10,8 +10,13 @@ class SkPath; class SK_API SkClipStack { public: SkClipStack(); + SkClipStack(const SkClipStack& b); ~SkClipStack() {} + SkClipStack& operator=(const SkClipStack& b); + bool operator==(const SkClipStack& b) const; + bool operator!=(const SkClipStack& b) const { return !(*this == b); } + void reset(); int getSaveCount() const { return fSaveCount; } @@ -37,6 +42,7 @@ public: B2FIter(const SkClipStack& stack); struct Clip { + friend bool operator==(const Clip& a, const Clip& b); const SkRect* fRect; // if non-null, this is a rect clip const SkPath* fPath; // if non-null, this is a path clip SkRegion::Op fOp; |