diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-08 15:30:53 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-11-08 15:30:53 +0000 |
commit | 6794a258e39358e8003b5106247db1b6812d8c84 (patch) | |
tree | 24ed52d47c7ebe7b4014cdb01ae939223abe8cbe /include | |
parent | 59bfb1240666b0f70109ac8ab04a280765ff8563 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkClipStack.h | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ -174,6 +178,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. */ void reset(const SkClipStack& stack, IterStart startLoc); |