aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSoftwarePathRenderer.h
diff options
context:
space:
mode:
authorGravatar robertphillips <robertphillips@google.com>2016-05-20 06:38:43 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-20 06:38:43 -0700
commit0152d731e0be311fda29467086d2c83629601aa1 (patch)
treec447158a2d955c73791d647de1d97d1e04e7732c /src/gpu/GrSoftwarePathRenderer.h
parent24a9bd711a74450d7c76c504acbadef384293dfc (diff)
GrSWMaskHelper and GrSoftwarePathRenderer only need the textureProvider (not GrContext)
This is split out of: https://codereview.chromium.org/1988923002/ (Declassify GrClipMaskManager and Remove GrRenderTarget and GrDrawTarget from GrPipelineBuilder) BUG=skia: Review-Url: https://codereview.chromium.org/1993403002
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.h')
-rw-r--r--src/gpu/GrSoftwarePathRenderer.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.h b/src/gpu/GrSoftwarePathRenderer.h
index 578911954c..edc47ce2c9 100644
--- a/src/gpu/GrSoftwarePathRenderer.h
+++ b/src/gpu/GrSoftwarePathRenderer.h
@@ -10,7 +10,7 @@
#include "GrPathRenderer.h"
-class GrContext;
+class GrTextureProvider;
/**
* This class uses the software side to render a path to an SkBitmap and
@@ -18,9 +18,8 @@ class GrContext;
*/
class GrSoftwarePathRenderer : public GrPathRenderer {
public:
- GrSoftwarePathRenderer(GrContext* context)
- : fContext(context) {
- }
+ GrSoftwarePathRenderer(GrTextureProvider* texProvider) : fTexProvider(texProvider) { }
+
private:
StencilSupport onGetStencilSupport(const SkPath&) const override {
return GrPathRenderer::kNoSupport_StencilSupport;
@@ -31,7 +30,7 @@ private:
bool onDrawPath(const DrawPathArgs&) override;
private:
- GrContext* fContext;
+ GrTextureProvider* fTexProvider;
typedef GrPathRenderer INHERITED;
};