aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-03 16:26:09 +0000
committerGravatar vandebo@chromium.org <vandebo@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-03 16:26:09 +0000
commit1e1c36f4f89ad39e1d248edb745919e493242c68 (patch)
treec72e9f4deff46051e93f7c5bd0cccf2beb80ae45 /include
parent7894b92b57b19d0e80e2e0187064fc9e8862d621 (diff)
Add comparison and assignment to SkClipStack (and fix an optimization bug).
Review URL: http://codereview.appspot.com/4423085 git-svn-id: http://skia.googlecode.com/svn/trunk@1230 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkClipStack.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/core/SkClipStack.h b/include/core/SkClipStack.h
index 850a3f0983..b94ae19246 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; }