From 74c6ed3d1f179209ec90025532310d9c8151999f Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Sat, 28 Jul 2018 18:07:54 -0400 Subject: Move one leaf loop from GPU to glyph drawer Encapsulate the bitmap inner loop of regenerate in the SkGlyphRunListDrawer. This changed required placing an SkGlyphRunListDrawer in the two TextTargets. Change-Id: I7ef7a2d0074fe898fce4da82d26ea1f47e1f7a98 Reviewed-on: https://skia-review.googlesource.com/144302 Reviewed-by: Jim Van Verth Reviewed-by: Brian Salomon Commit-Queue: Herb Derby --- src/gpu/text/GrTextUtils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gpu/text/GrTextUtils.h') diff --git a/src/gpu/text/GrTextUtils.h b/src/gpu/text/GrTextUtils.h index 05fbf6f35e..a02cebf7dd 100644 --- a/src/gpu/text/GrTextUtils.h +++ b/src/gpu/text/GrTextUtils.h @@ -27,6 +27,7 @@ class GrPaint; class GrShaderCaps; class SkColorSpace; class SkGlyph; +class SkGlyphRunListDrawer; class SkMatrix; struct SkIRect; struct SkPoint; @@ -58,6 +59,8 @@ public: virtual GrContext* getContext() = 0; + virtual SkGlyphRunListDrawer* glyphDrawer() = 0; + protected: Target(int width, int height, const GrColorSpaceInfo& colorSpaceInfo) : fWidth(width), fHeight(height), fColorSpaceInfo(colorSpaceInfo) {} -- cgit v1.2.3