diff options
author | 2015-03-23 08:13:04 -0700 | |
---|---|---|
committer | 2015-03-23 08:13:04 -0700 | |
commit | 9c328187d9dee33736b77dc14dfb59529d948bb1 (patch) | |
tree | 8fed079241b8f1b9dc18c6d1606e68532fb94e7b /src/gpu/GrTextContext.h | |
parent | c589f6c9680f76b371b5a0ebcd986f2574751887 (diff) |
Initial change to move text blob to GrTextContext
BUG=skia:
Review URL: https://codereview.chromium.org/1019633002
Diffstat (limited to 'src/gpu/GrTextContext.h')
-rw-r--r-- | src/gpu/GrTextContext.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gpu/GrTextContext.h b/src/gpu/GrTextContext.h index 56a113daed..6dfd8601fb 100644 --- a/src/gpu/GrTextContext.h +++ b/src/gpu/GrTextContext.h @@ -19,7 +19,9 @@ class GrClip; class GrContext; class GrDrawTarget; class GrFontScaler; +class SkDrawFilter; class SkGpuDevice; +class SkTextBlob; /* * This class wraps the state for a single text render @@ -36,6 +38,9 @@ public: const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds); + void drawTextBlob(GrRenderTarget*, const GrClip&, const SkPaint&, + const SkMatrix& viewMatrix, const SkTextBlob*, SkScalar x, SkScalar y, + SkDrawFilter*, const SkIRect& clipBounds); protected: GrTextContext* fFallbackTextContext; @@ -67,6 +72,9 @@ protected: const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds) = 0; + virtual void onDrawTextBlob(GrRenderTarget*, const GrClip&, const SkPaint&, + const SkMatrix& viewMatrix, const SkTextBlob*, + SkScalar x, SkScalar y, SkDrawFilter*, const SkIRect& clipBounds); void drawTextAsPath(const SkPaint& origPaint, const SkMatrix& viewMatrix, const char text[], size_t byteLength, SkScalar x, SkScalar y, |