diff options
author | Hal Canary <halcanary@google.com> | 2017-02-07 16:58:28 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-02-22 16:29:41 +0000 |
commit | f3ee34f1eca8f32fa0ec5494c335ce75382420a7 (patch) | |
tree | 6b5b0e6416dede0ecbe77c4be4e088a8574f87f6 /src/core/SkClipStack.h | |
parent | 384b90af5ccdbb071f32e20b382f41351b2a0b69 (diff) |
SkClipStack: add bounds() and isEmpty() methods
Also: update some of SkPDF to use these rather than the RasterClip.
Change-Id: I5a2564d2269c145135df6a8eda65ab05e4aeaf14
Reviewed-on: https://skia-review.googlesource.com/8159
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'src/core/SkClipStack.h')
-rw-r--r-- | src/core/SkClipStack.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/SkClipStack.h b/src/core/SkClipStack.h index 2f24d69502..080712dfe3 100644 --- a/src/core/SkClipStack.h +++ b/src/core/SkClipStack.h @@ -353,6 +353,9 @@ public: BoundsType* boundType, bool* isIntersectionOfRects = NULL) const; + SkRect bounds(const SkIRect& deviceBounds) const; + bool isEmpty(const SkIRect& deviceBounds) const; + /** * Returns true if the input (r)rect in device space is entirely contained * by the clip. A return value of false does not guarantee that the (r)rect |