From 6794a258e39358e8003b5106247db1b6812d8c84 Mon Sep 17 00:00:00 2001 From: "bsalomon@google.com" Date: Thu, 8 Nov 2012 15:30:53 +0000 Subject: Apply intersect rects to earlier clip elements and skip rects when possible. R=robertphillips@google.com Review URL: https://codereview.appspot.com/6814105 git-svn-id: http://skia.googlecode.com/svn/trunk@6351 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/core/SkClipStack.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/core') diff --git a/include/core/SkClipStack.h b/include/core/SkClipStack.h index 443e6ad7d9..b420c9a7bd 100644 --- a/include/core/SkClipStack.h +++ b/include/core/SkClipStack.h @@ -138,6 +138,10 @@ public: * Gets the bounds of the clip element, either the rect or path bounds. */ const SkRect& getBounds() const; + /** + * Returns true if the clip element is a path that is inverse filled + */ + bool isInverseFilled() const; const SkRect* fRect; // if non-null, this is a rect clip const SkPath* fPath; // if non-null, this is a path clip @@ -173,6 +177,12 @@ public: */ const Clip* skipToTopmost(SkRegion::Op op); + /** + * Moves forward to the next clip element that uses op. If no clip with that op is found, + * returns NULL. + */ + const Clip* skipToNext(SkRegion::Op op); + /** * Restarts the iterator on a clip stack. */ -- cgit v1.2.3