aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSWMaskHelper.h
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2017-08-30 13:55:35 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-30 18:14:26 +0000
commit740775606d0af0a03ceebba7428d88fb279c5d94 (patch)
treeeaa03efb6d733d62c9e26fed04b2ee10e5021e18 /src/gpu/GrSWMaskHelper.h
parent71554bc256b705fe959b7aa2fb2f24ed48782362 (diff)
Make GrSWMaskHelper take a matrix for each draw
Change-Id: I52659857174848696f360d64552a9690db24ed50 Reviewed-on: https://skia-review.googlesource.com/40883 Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/GrSWMaskHelper.h')
-rw-r--r--src/gpu/GrSWMaskHelper.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h
index 4e1363c3df..6590143469 100644
--- a/src/gpu/GrSWMaskHelper.h
+++ b/src/gpu/GrSWMaskHelper.h
@@ -41,13 +41,13 @@ public:
// may be accumulated in the helper during creation, "resultBounds"
// allows the caller to specify the region of interest - to limit the
// amount of work.
- bool init(const SkIRect& resultBounds, const SkMatrix* matrix);
+ bool init(const SkIRect& resultBounds);
// Draw a single rect into the accumulation bitmap using the specified op
- void drawRect(const SkRect& rect, SkRegion::Op op, GrAA, uint8_t alpha);
+ void drawRect(const SkRect& rect, const SkMatrix& matrix, SkRegion::Op op, GrAA, uint8_t alpha);
// Draw a single path into the accumuation bitmap using the specified op
- void drawShape(const GrShape&, SkRegion::Op op, GrAA, uint8_t alpha);
+ void drawShape(const GrShape&, const SkMatrix& matrix, SkRegion::Op op, GrAA, uint8_t alpha);
sk_sp<GrTextureProxy> toTextureProxy(GrContext*, SkBackingFit fit);
@@ -57,7 +57,7 @@ public:
}
private:
- SkMatrix fMatrix;
+ SkVector fTranslate;
SkAutoPixmapStorage* fPixels;
SkAutoPixmapStorage fPixelsStorage;
SkDraw fDraw;