diff options
author | bsalomon <bsalomon@google.com> | 2015-07-31 06:48:27 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-31 06:48:27 -0700 |
commit | 0aff2fa82a5fa9f99aa77327dac3e9e803b4ed07 (patch) | |
tree | 622deb8887694c291e7b5ec74d41abd2f211ae67 /src/gpu/GrSoftwarePathRenderer.h | |
parent | 99cab4e3081e7e0ae8a72eb53cb42b1bef3719a3 (diff) |
Also provides the ResourceProvider to onDrawPath which allows the DF PR to no longer require access to GrContext.
Review URL: https://codereview.chromium.org/1265763002
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.h')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.h | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrSoftwarePathRenderer.h index 6e2055ad97..d7991b84a3 100644 --- a/src/gpu/GrSoftwarePathRenderer.h +++ b/src/gpu/GrSoftwarePathRenderer.h @@ -22,26 +22,15 @@ public: GrSoftwarePathRenderer(GrContext* context) : fContext(context) { } - - virtual bool canDrawPath(const GrDrawTarget*, - const GrPipelineBuilder*, - const SkMatrix& viewMatrix, - const SkPath&, - const GrStrokeInfo&, - bool antiAlias) const override; -protected: +private: virtual StencilSupport onGetStencilSupport(const GrDrawTarget*, const GrPipelineBuilder*, const SkPath&, const GrStrokeInfo&) const override; + + bool onCanDrawPath(const CanDrawPathArgs&) const override; - virtual bool onDrawPath(GrDrawTarget*, - GrPipelineBuilder*, - GrColor, - const SkMatrix& viewMatrix, - const SkPath&, - const GrStrokeInfo&, - bool antiAlias) override; + bool onDrawPath(const DrawPathArgs&) override; private: GrContext* fContext; |