aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkClipStack.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-08-28 12:38:58 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-28 17:01:06 +0000
commit2e86634ae64ac333100d55a49992143fbf143384 (patch)
tree3d1d6aaded76ed4d0755d9b8e8ab777e5630770c /src/core/SkClipStack.h
parent419a94da028b33425a0feeb44d0d022a5d3d3704 (diff)
Move transformation of clip elements to SkClipStack::Element
Change-Id: Ia6ff3fdc927e33dbd28ccfb345859594289d0690 Reviewed-on: https://skia-review.googlesource.com/36820 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/core/SkClipStack.h')
-rw-r--r--src/core/SkClipStack.h31
1 files changed, 18 insertions, 13 deletions
diff --git a/src/core/SkClipStack.h b/src/core/SkClipStack.h
index b09c7f4e52..466df6cab9 100644
--- a/src/core/SkClipStack.h
+++ b/src/core/SkClipStack.h
@@ -64,13 +64,17 @@ public:
Element(const Element&);
- Element(const SkRect& rect, SkClipOp op, bool doAA) { this->initRect(0, rect, op, doAA); }
+ Element(const SkRect& rect, const SkMatrix& m, SkClipOp op, bool doAA) {
+ this->initRect(0, rect, m, op, doAA);
+ }
- Element(const SkRRect& rrect, SkClipOp op, bool doAA) {
- this->initRRect(0, rrect, op, doAA);
+ Element(const SkRRect& rrect, const SkMatrix& m, SkClipOp op, bool doAA) {
+ this->initRRect(0, rrect, m, op, doAA);
}
- Element(const SkPath& path, SkClipOp op, bool doAA) { this->initPath(0, path, op, doAA); }
+ Element(const SkPath& path, const SkMatrix& m, SkClipOp op, bool doAA) {
+ this->initPath(0, path, m, op, doAA);
+ }
~Element() {
#if SK_SUPPORT_GPU
@@ -202,22 +206,23 @@ public:
this->setEmpty();
}
- Element(int saveCount, const SkRRect& rrect, SkClipOp op, bool doAA) {
- this->initRRect(saveCount, rrect, op, doAA);
+ Element(int saveCount, const SkRRect& rrect, const SkMatrix& m, SkClipOp op, bool doAA) {
+ this->initRRect(saveCount, rrect, m, op, doAA);
}
- Element(int saveCount, const SkRect& rect, SkClipOp op, bool doAA) {
- this->initRect(saveCount, rect, op, doAA);
+ Element(int saveCount, const SkRect& rect, const SkMatrix& m, SkClipOp op, bool doAA) {
+ this->initRect(saveCount, rect, m, op, doAA);
}
- Element(int saveCount, const SkPath& path, SkClipOp op, bool doAA) {
- this->initPath(saveCount, path, op, doAA);
+ Element(int saveCount, const SkPath& path, const SkMatrix& m, SkClipOp op, bool doAA) {
+ this->initPath(saveCount, path, m, op, doAA);
}
void initCommon(int saveCount, SkClipOp op, bool doAA);
- void initRect(int saveCount, const SkRect& rect, SkClipOp op, bool doAA);
- void initRRect(int saveCount, const SkRRect& rrect, SkClipOp op, bool doAA);
- void initPath(int saveCount, const SkPath& path, SkClipOp op, bool doAA);
+ void initRect(int saveCount, const SkRect&, const SkMatrix&, SkClipOp, bool doAA);
+ void initRRect(int saveCount, const SkRRect&, const SkMatrix&, SkClipOp, bool doAA);
+ void initPath(int saveCount, const SkPath&, const SkMatrix&, SkClipOp, bool doAA);
+ void initAsPath(int saveCount, const SkPath&, const SkMatrix&, SkClipOp, bool doAA);
void setEmpty();