aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/text/GrTextContext.h
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2016-02-11 12:00:33 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2016-02-11 12:00:33 -0800
commit27004b7e653a38570d3fd1621ed0107e5443b31a (patch)
tree7caf6bccabc7d075ea26e6304491f6efaad93dda /src/gpu/text/GrTextContext.h
parent7ea5e28065e5eb797e95f5d81c1a65cf3209d741 (diff)
Remove GrContext* from GrTextContext
Diffstat (limited to 'src/gpu/text/GrTextContext.h')
-rw-r--r--src/gpu/text/GrTextContext.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gpu/text/GrTextContext.h b/src/gpu/text/GrTextContext.h
index 90ae4f35e8..04959a05aa 100644
--- a/src/gpu/text/GrTextContext.h
+++ b/src/gpu/text/GrTextContext.h
@@ -28,19 +28,19 @@ class GrTextContext {
public:
virtual ~GrTextContext() {}
- virtual void drawText(GrDrawContext* dc,
+ virtual void drawText(GrContext*, GrDrawContext* dc,
const GrClip&, const GrPaint&, const SkPaint&,
const SkMatrix& viewMatrix,
const SkSurfaceProps& props, const char text[], size_t byteLength,
SkScalar x, SkScalar y, const SkIRect& clipBounds) = 0;
- virtual void drawPosText(GrDrawContext* dc,
+ virtual void drawPosText(GrContext*, GrDrawContext* dc,
const GrClip&, const GrPaint&, const SkPaint&,
const SkMatrix& viewMatrix,
const SkSurfaceProps& props,
const char text[], size_t byteLength,
const SkScalar pos[], int scalarsPerPosition,
const SkPoint& offset, const SkIRect& clipBounds) = 0;
- virtual void drawTextBlob(GrDrawContext* dc, const GrClip&,
+ virtual void drawTextBlob(GrContext*, GrDrawContext* dc, const GrClip&,
const SkPaint&, const SkMatrix& viewMatrix,
const SkSurfaceProps& props, const SkTextBlob*,
SkScalar x, SkScalar y,
@@ -49,10 +49,6 @@ public:
static bool ShouldDisableLCD(const SkPaint& paint);
protected:
- GrContext* fContext;
-
- GrTextContext(GrContext*);
-
static GrFontScaler* GetGrFontScaler(SkGlyphCache* cache);
static uint32_t FilterTextFlags(const SkSurfaceProps& surfaceProps, const SkPaint& paint);