diff options
author | Brian Salomon <bsalomon@google.com> | 2017-08-30 13:55:35 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-08-30 18:14:26 +0000 |
commit | 740775606d0af0a03ceebba7428d88fb279c5d94 (patch) | |
tree | eaa03efb6d733d62c9e26fed04b2ee10e5021e18 /src/gpu/GrSoftwarePathRenderer.cpp | |
parent | 71554bc256b705fe959b7aa2fb2f24ed48782362 (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/GrSoftwarePathRenderer.cpp')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp index e76af89933..1363e1ae7c 100644 --- a/src/gpu/GrSoftwarePathRenderer.cpp +++ b/src/gpu/GrSoftwarePathRenderer.cpp @@ -342,9 +342,9 @@ bool GrSoftwarePathRenderer::onDrawPath(const DrawPathArgs& args) { auto drawAndUploadMask = [uploaderRaw] { TRACE_EVENT0("skia", "Threaded SW Mask Render"); GrSWMaskHelper helper(uploaderRaw->getPixels()); - if (helper.init(uploaderRaw->getMaskBounds(), uploaderRaw->getViewMatrix())) { - helper.drawShape(uploaderRaw->getShape(), SkRegion::kReplace_Op, - uploaderRaw->getAA(), 0xFF); + if (helper.init(uploaderRaw->getMaskBounds())) { + helper.drawShape(uploaderRaw->getShape(), *uploaderRaw->getViewMatrix(), + SkRegion::kReplace_Op, uploaderRaw->getAA(), 0xFF); } else { SkDEBUGFAIL("Unable to allocate SW mask."); } @@ -354,10 +354,10 @@ bool GrSoftwarePathRenderer::onDrawPath(const DrawPathArgs& args) { args.fRenderTargetContext->getOpList()->addPrepareCallback(std::move(uploader)); } else { GrSWMaskHelper helper; - if (!helper.init(*boundsForMask, args.fViewMatrix)) { + if (!helper.init(*boundsForMask)) { return false; } - helper.drawShape(*args.fShape, SkRegion::kReplace_Op, aa, 0xFF); + helper.drawShape(*args.fShape, *args.fViewMatrix, SkRegion::kReplace_Op, aa, 0xFF); proxy = helper.toTextureProxy(args.fContext, fit); } |