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
diff --git a/include/core/SkClipStack.h b/include/core/SkClipStack.h
index 71b68ce..60ed9ed 100644
--- a/include/core/SkClipStack.h
+++ b/include/core/SkClipStack.h
@@ -24,6 +24,7 @@
 public:
     SkClipStack();
     SkClipStack(const SkClipStack& b);
+    explicit SkClipStack(const SkRect& r);
     ~SkClipStack();
 
     SkClipStack& operator=(const SkClipStack& b);
@@ -68,6 +69,12 @@
     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;