aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-26 18:39:13 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-07-26 18:39:13 +0000
commitcc6493bbef7c9c2adf4b1ed8701e2ed015ae745d (patch)
tree257e1e820b36a51eea6eaff4f849cbdde66b5cb0 /include
parent451bb9f801d668275394ca5bd57f238e13cf3d17 (diff)
Added ctor to SkClipStack and isEmpty method
Diffstat (limited to 'include')
-rw-r--r--include/core/SkClipStack.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/core/SkClipStack.h b/include/core/SkClipStack.h
index 71b68cebde..60ed9edf3b 100644
--- a/include/core/SkClipStack.h
+++ b/include/core/SkClipStack.h
@@ -24,6 +24,7 @@ class SK_API SkClipStack {
public:
SkClipStack();
SkClipStack(const SkClipStack& b);
+ explicit SkClipStack(const SkRect& r);
~SkClipStack();
SkClipStack& operator=(const SkClipStack& b);
@@ -68,6 +69,12 @@ public:
void clipDevRect(const SkRect&, SkRegion::Op, bool doAA);
void clipDevPath(const SkPath&, SkRegion::Op, bool doAA);
+ /**
+ * isWideOpen returns true if the clip state corresponds to the infinite
+ * plane (i.e., draws are not limited at all)
+ */
+ bool isWideOpen() const;
+
private:
struct Rec;