diff options
Diffstat (limited to 'src/gpu/GrTextContext.h')
-rw-r--r-- | src/gpu/GrTextContext.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gpu/GrTextContext.h b/src/gpu/GrTextContext.h index 07485f4d17..f4c0982ed4 100644 --- a/src/gpu/GrTextContext.h +++ b/src/gpu/GrTextContext.h @@ -19,7 +19,6 @@ class GrContext; class GrDrawContext; class GrFontScaler; class SkDrawFilter; -class SkGpuDevice; class SkTextBlob; /* @@ -37,11 +36,13 @@ public: const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds); - virtual void drawTextBlob(SkGpuDevice*, GrRenderTarget*, const GrClip&, const SkPaint&, + virtual void drawTextBlob(GrRenderTarget*, const GrClip&, const SkPaint&, const SkMatrix& viewMatrix, const SkTextBlob*, SkScalar x, SkScalar y, SkDrawFilter*, const SkIRect& clipBounds); + static bool ShouldDisableLCD(const SkPaint& paint); + protected: GrTextContext* fFallbackTextContext; GrContext* fContext; @@ -87,6 +88,7 @@ protected: // sets extent in stopVector and returns glyph count static int MeasureText(SkGlyphCache* cache, SkDrawCacheProc glyphCacheProc, const char text[], size_t byteLength, SkVector* stopVector); + static uint32_t FilterTextFlags(const SkDeviceProperties& devProps, const SkPaint& paint); friend class BitmapTextBatch; }; |