aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrStencilAndCoverPathRenderer.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-05-22 07:35:58 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-22 07:35:58 -0700
commit706f08fbcb7f5275235784f67bd7d188ad04eef2 (patch)
tree08ad8e87d3cb303a8928cc169b15a54ee982a287 /src/gpu/GrStencilAndCoverPathRenderer.h
parenta76b7a3b04bc0e937921a1eb38d713c619e60e4e (diff)
Move GrPath(Range) creation to ResourceProvider.
Diffstat (limited to 'src/gpu/GrStencilAndCoverPathRenderer.h')
-rw-r--r--src/gpu/GrStencilAndCoverPathRenderer.h56
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;
};