diff options
author | 2015-05-22 07:35:58 -0700 | |
---|---|---|
committer | 2015-05-22 07:35:58 -0700 | |
commit | 706f08fbcb7f5275235784f67bd7d188ad04eef2 (patch) | |
tree | 08ad8e87d3cb303a8928cc169b15a54ee982a287 /src/gpu/GrStencilAndCoverPathRenderer.h | |
parent | a76b7a3b04bc0e937921a1eb38d713c619e60e4e (diff) |
Move GrPath(Range) creation to ResourceProvider.
Review URL: https://codereview.chromium.org/1155593002
Diffstat (limited to 'src/gpu/GrStencilAndCoverPathRenderer.h')
-rw-r--r-- | src/gpu/GrStencilAndCoverPathRenderer.h | 56 |
1 files changed, 27 insertions, 29 deletions
diff --git a/src/gpu/GrStencilAndCoverPathRenderer.h b/src/gpu/GrStencilAndCoverPathRenderer.h index 7e3c005f3e..62a378b0a7 100644 --- a/src/gpu/GrStencilAndCoverPathRenderer.h +++ b/src/gpu/GrStencilAndCoverPathRenderer.h @@ -21,41 +21,39 @@ class GrGpu; class GrStencilAndCoverPathRenderer : public GrPathRenderer { public: - static GrPathRenderer* Create(GrContext*); + static GrPathRenderer* Create(GrResourceProvider*, const GrCaps&); - virtual ~GrStencilAndCoverPathRenderer(); - - virtual bool canDrawPath(const GrDrawTarget*, - const GrPipelineBuilder*, - const SkMatrix& viewMatrix, - const SkPath&, - const GrStrokeInfo&, - bool antiAlias) const override; + bool canDrawPath(const GrDrawTarget*, + const GrPipelineBuilder*, + const SkMatrix& viewMatrix, + const SkPath&, + const GrStrokeInfo&, + bool antiAlias) const override; protected: - virtual StencilSupport onGetStencilSupport(const GrDrawTarget*, - const GrPipelineBuilder*, - const SkPath&, - const GrStrokeInfo&) const override; - - virtual bool onDrawPath(GrDrawTarget*, - GrPipelineBuilder*, - GrColor, - const SkMatrix& viewMatrix, - const SkPath&, - const GrStrokeInfo&, - bool antiAlias) override; - - virtual void onStencilPath(GrDrawTarget*, - GrPipelineBuilder*, - const SkMatrix& viewMatrix, - const SkPath&, - const GrStrokeInfo&) override; + StencilSupport onGetStencilSupport(const GrDrawTarget*, + const GrPipelineBuilder*, + const SkPath&, + const GrStrokeInfo&) const override; + + bool onDrawPath(GrDrawTarget*, + GrPipelineBuilder*, + GrColor, + const SkMatrix& viewMatrix, + const SkPath&, + const GrStrokeInfo&, + bool antiAlias) override; + + void onStencilPath(GrDrawTarget*, + GrPipelineBuilder*, + const SkMatrix& viewMatrix, + const SkPath&, + const GrStrokeInfo&) override; private: - GrStencilAndCoverPathRenderer(GrGpu*); + GrStencilAndCoverPathRenderer(GrResourceProvider*); - GrGpu* fGpu; + GrResourceProvider* fResourceProvider; typedef GrPathRenderer INHERITED; }; |