diff options
author | Herb Derby <herb@google.com> | 2018-07-16 11:19:04 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-19 16:25:55 +0000 |
commit | cddab25218c52327ee1c527d726e69aa89540917 (patch) | |
tree | 91a8bd583444bed7903bc51953c35e4b6f02c92b /src/gpu/GrRenderTargetContext.h | |
parent | 297c3c8e85bdb7ed79aaa6a596f52874d79e7a25 (diff) |
Use SkGlyphRunListIterator in gpu
Instead of using the text blob through the stack start
using the glyph run list.
This CL is similar to a portion of https://skia-review.googlesource.com/c/skia/+/137224
which was reverted.
Change-Id: I1f0619bd2d13523f9af1a68ab27fb26abd086add
Reviewed-on: https://skia-review.googlesource.com/141543
Commit-Queue: Herb Derby <herb@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContext.h')
-rw-r--r-- | src/gpu/GrRenderTargetContext.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrRenderTargetContext.h b/src/gpu/GrRenderTargetContext.h index bdeb688896..2d4bc49dcf 100644 --- a/src/gpu/GrRenderTargetContext.h +++ b/src/gpu/GrRenderTargetContext.h @@ -37,6 +37,7 @@ class GrStyle; class GrTextureProxy; struct GrUserStencilSettings; struct SkDrawShadowRec; +class SkGlyphRunList; struct SkIPoint; struct SkIRect; class SkLatticeIter; @@ -67,9 +68,9 @@ public: const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset, const SkIRect& clipBounds); - virtual void drawTextBlob(const GrClip&, const SkPaint&, - const SkMatrix& viewMatrix, const SkTextBlob*, - SkScalar x, SkScalar y, const SkIRect& clipBounds); + virtual void drawGlyphRunList(const GrClip&, + const SkMatrix& viewMatrix, SkGlyphRunList*, + const SkIRect& clipBounds); /** * Provides a perfomance hint that the render target's contents are allowed |