Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / src / core / SkAAClip.h
index f2cde62..45cc549 100644 (file)
@@ -29,6 +29,10 @@ public:
     bool isEmpty() const { return NULL == fRunHead; }
     const SkIRect& getBounds() const { return fBounds; }
 
+    // Returns true iff the clip is not empty, and is just a hard-edged rect (no partial alpha).
+    // If true, getBounds() can be used in place of this clip.
+    bool isRect() const;
+
     bool setEmpty();
     bool setRect(const SkIRect&);
     bool setRect(const SkRect&, bool doAA = true);
@@ -71,8 +75,10 @@ public:
 
 #ifdef SK_DEBUG
     void validate() const;
+    void debug(bool compress_y=false) const;
 #else
     void validate() const {}
+    void debug(bool compress_y=false) const {}
 #endif
 
 private: