aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrSWMaskHelper.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/GrSWMaskHelper.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/GrSWMaskHelper.h')
-rw-r--r--src/gpu/GrSWMaskHelper.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gpu/GrSWMaskHelper.h b/src/gpu/GrSWMaskHelper.h
index b329dd627e..355379e697 100644
--- a/src/gpu/GrSWMaskHelper.h
+++ b/src/gpu/GrSWMaskHelper.h
@@ -19,7 +19,7 @@
#include "SkTypes.h"
class GrClip;
-class GrContext;
+class GrTextureProvider;
class GrTexture;
class SkPath;
class SkStrokeRec;
@@ -41,7 +41,7 @@ class GrDrawTarget;
*/
class GrSWMaskHelper : SkNoncopyable {
public:
- GrSWMaskHelper(GrContext* context) : fContext(context) { }
+ GrSWMaskHelper(GrTextureProvider* texProvider) : fTexProvider(texProvider) { }
// set up the internal state in preparation for draws. Since many masks
// may be accumulated in the helper during creation, "resultBounds"
@@ -69,7 +69,7 @@ public:
// Canonical usage utility that draws a single path and uploads it
// to the GPU. The result is returned.
- static GrTexture* DrawPathMaskToTexture(GrContext* context,
+ static GrTexture* DrawPathMaskToTexture(GrTextureProvider*,
const SkPath& path,
const GrStyle& style,
const SkIRect& resultBounds,
@@ -99,11 +99,11 @@ private:
// result (i.e., right size & format)
GrTexture* createTexture();
- GrContext* fContext;
- SkMatrix fMatrix;
+ GrTextureProvider* fTexProvider;
+ SkMatrix fMatrix;
SkAutoPixmapStorage fPixels;
- SkDraw fDraw;
- SkRasterClip fRasterClip;
+ SkDraw fDraw;
+ SkRasterClip fRasterClip;
typedef SkNoncopyable INHERITED;
};