diff options
author | 2012-07-26 18:39:13 +0000 | |
---|---|---|
committer | 2012-07-26 18:39:13 +0000 | |
commit | cc6493bbef7c9c2adf4b1ed8701e2ed015ae745d (patch) | |
tree | 257e1e820b36a51eea6eaff4f849cbdde66b5cb0 /include | |
parent | 451bb9f801d668275394ca5bd57f238e13cf3d17 (diff) |
Added ctor to SkClipStack and isEmpty method
http://codereview.appspot.com/6444048/
git-svn-id: http://skia.googlecode.com/svn/trunk@4787 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkClipStack.h | 7 |
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; |