X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2Fskia%2Fsrc%2Fcore%2FSkAAClip.h;h=45cc54932df729bbd0446f47ecb2c32dc27849cd;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=f2cde62dbc8d90387a83fe4ff806fb60ea49bfc5;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/skia/src/core/SkAAClip.h b/src/third_party/skia/src/core/SkAAClip.h index f2cde62..45cc549 100644 --- a/src/third_party/skia/src/core/SkAAClip.h +++ b/src/third_party/skia/src/core/SkAAClip.h @@ -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: