aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSoftwarePathRenderer.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2015-08-13 07:57:10 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-08-13 07:57:10 -0700
commite7d4b2f5dc3c35f351ba120018c214f739447fb2 (patch)
treede68366919b95825ae54af04b408f32c1405716b /src/gpu/GrSoftwarePathRenderer.h
parent15f4951e84a0aef2ed31b2e66129579feaa18850 (diff)
Simplify parameters passed to path renderers
It appears that CanDrawPathArgs::fTarget was only ever used to access the shaderCaps and no instances of onGetStencilSupport ever used the drawTarget and pipelineBuilder parameters. Review URL: https://codereview.chromium.org/1291803006
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.h')
-rw-r--r--src/gpu/GrSoftwarePathRenderer.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrSoftwarePathRenderer.h
index d7991b84a3..72a95152e2 100644
--- a/src/gpu/GrSoftwarePathRenderer.h
+++ b/src/gpu/GrSoftwarePathRenderer.h
@@ -23,10 +23,9 @@ public:
: fContext(context) {
}
private:
- virtual StencilSupport onGetStencilSupport(const GrDrawTarget*,
- const GrPipelineBuilder*,
- const SkPath&,
- const GrStrokeInfo&) const override;
+ StencilSupport onGetStencilSupport(const SkPath&, const GrStrokeInfo&) const override {
+ return GrPathRenderer::kNoSupport_StencilSupport;
+ }
bool onCanDrawPath(const CanDrawPathArgs&) const override;