aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSoftwarePathRenderer.h
diff options
context:
space:
mode:
authorGravatar Brian Osman <brianosman@google.com>2017-08-17 16:14:25 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-17 20:33:31 +0000
commitc7da1468e3de821d9be6f086086ea956bb30dbb2 (patch)
tree17a0cdd99d2c97112fe338f671858a0444bdd328 /src/gpu/GrSoftwarePathRenderer.h
parent7ca9a74fef3296cdf1385785b5e817e963bb4c35 (diff)
Move DrawToTargetWithShapeMask to GrSoftwarePathRenderer
That function has nothing to do with software masks - I claim it was only in GrSWMaskHelper because it was used by the software path renderer. Also trimmed some includes. Bug: skia: Change-Id: I6939010c70309cdc4135cb250afe85ad7b7be451 Reviewed-on: https://skia-review.googlesource.com/35821 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.h')
-rw-r--r--src/gpu/GrSoftwarePathRenderer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrSoftwarePathRenderer.h
index c8d2f8b8d8..2421fa4d70 100644
--- a/src/gpu/GrSoftwarePathRenderer.h
+++ b/src/gpu/GrSoftwarePathRenderer.h
@@ -37,6 +37,18 @@ private:
const SkIRect& devClipBounds,
const SkIRect& devPathBounds);
+ // This utility draws a path mask using a provided paint. The rectangle is drawn in device
+ // space. The 'viewMatrix' will be used to ensure the correct local coords are provided to
+ // any fragment processors in the paint.
+ static void DrawToTargetWithShapeMask(sk_sp<GrTextureProxy> proxy,
+ GrRenderTargetContext* renderTargetContext,
+ GrPaint&& paint,
+ const GrUserStencilSettings& userStencilSettings,
+ const GrClip& clip,
+ const SkMatrix& viewMatrix,
+ const SkIPoint& textureOriginInDeviceSpace,
+ const SkIRect& deviceSpaceRectToDraw);
+
StencilSupport onGetStencilSupport(const GrShape&) const override {
return GrPathRenderer::kNoSupport_StencilSupport;
}