aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core
diff options
context:
space:
mode:
Diffstat (limited to 'include/core')
-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 52b1b225eb..b39c5af6e1 100644
--- a/include/core/SkClipStack.h
+++ b/include/core/SkClipStack.h
@@ -292,6 +292,13 @@ public:
*/
bool intersectRectWithClip(SkRect* devRect) const;
+ /**
+ * Returns true if the input rect in device space is entirely contained
+ * by the clip. A return value of false does not guarantee that the rect
+ * is not contained by the clip.
+ */
+ bool quickContains(const SkRect& devRect) const;
+
void clipDevRect(const SkIRect& ir, SkRegion::Op op) {
SkRect r;
r.set(ir);