Chromium Code Reviews| Index: src/gpu/GrTextContext.h |
| diff --git a/src/gpu/GrTextContext.h b/src/gpu/GrTextContext.h |
| index f4c0982ed4393b0e9ce2b0eb7bbeeec7cbc5fb78..0ad190aa48b6233394b8ce3d856ae193f3edcace 100644 |
| --- a/src/gpu/GrTextContext.h |
| +++ b/src/gpu/GrTextContext.h |
| @@ -47,7 +47,9 @@ protected: |
| GrTextContext* fFallbackTextContext; |
| GrContext* fContext; |
| SkDeviceProperties fDeviceProperties; |
| + bool fUseDFT; |
| + GrDrawContext* fDrawContext; // owning drawContext |
| SkAutoTUnref<GrRenderTarget> fRenderTarget; |
| GrClip fClip; |
| SkIRect fClipRect; |
| @@ -55,27 +57,27 @@ protected: |
| GrPaint fPaint; |
| SkPaint fSkPaint; |
| - GrTextContext(GrContext*, const SkDeviceProperties&); |
| + GrTextContext(GrContext*, GrDrawContext*, const SkDeviceProperties&, bool useDFT); |
|
bsalomon
2015/06/11 01:47:57
Seems odd for the base class to know about DF. Is
|
| virtual bool canDraw(const GrRenderTarget*, const GrClip&, const GrPaint&, |
| const SkPaint&, const SkMatrix& viewMatrix) = 0; |
| - virtual void onDrawText(GrDrawContext*, GrRenderTarget*, const GrClip&, |
| + virtual void onDrawText(GrRenderTarget*, const GrClip&, |
| const GrPaint&, const SkPaint&, |
| const SkMatrix& viewMatrix, const char text[], size_t byteLength, |
| SkScalar x, SkScalar y, const SkIRect& clipBounds) = 0; |
| - virtual void onDrawPosText(GrDrawContext*, GrRenderTarget*, const GrClip&, |
| + virtual void onDrawPosText(GrRenderTarget*, const GrClip&, |
| const GrPaint&, const SkPaint&, |
| const SkMatrix& viewMatrix, |
| const char text[], size_t byteLength, |
| const SkScalar pos[], int scalarsPerPosition, |
| const SkPoint& offset, const SkIRect& clipBounds) = 0; |
| - void drawTextAsPath(GrDrawContext*, GrRenderTarget*, const GrClip& clip, |
| + void drawTextAsPath(GrRenderTarget*, const GrClip& clip, |
| const SkPaint& origPaint, const SkMatrix& viewMatrix, |
| const char text[], size_t byteLength, SkScalar x, SkScalar y, |
| const SkIRect& clipBounds); |
| - void drawPosTextAsPath(GrDrawContext*, GrRenderTarget*, const GrClip& clip, |
| + void drawPosTextAsPath(GrRenderTarget*, const GrClip& clip, |
| const SkPaint& origPaint, const SkMatrix& viewMatrix, |
| const char text[], size_t byteLength, |
| const SkScalar pos[], int scalarsPerPosition, |