From 46dbfbb528305fc7c7bd4f8cca56dc4321761511 Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Fri, 27 Jul 2018 15:36:49 -0400 Subject: Make regenerateGlyphRunList on use the iterator Change-Id: Iba68c94a62b535031594dcff46fd73ed36613b95 Reviewed-on: https://skia-review.googlesource.com/144120 Commit-Queue: Herb Derby Auto-Submit: Herb Derby Reviewed-by: Brian Salomon --- src/gpu/text/GrTextContext.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/gpu/text/GrTextContext.h') diff --git a/src/gpu/text/GrTextContext.h b/src/gpu/text/GrTextContext.h index 7c8c576041..21657469c5 100644 --- a/src/gpu/text/GrTextContext.h +++ b/src/gpu/text/GrTextContext.h @@ -8,10 +8,11 @@ #ifndef GrTextContext_DEFINED #define GrTextContext_DEFINED -#include "GrTextBlob.h" #include "GrDistanceFieldAdjustTable.h" #include "GrGeometryProcessor.h" +#include "GrTextBlob.h" #include "GrTextUtils.h" +#include "SkGlyphRun.h" #if GR_TEST_UTILS #include "GrDrawOpTest.h" @@ -177,6 +178,11 @@ private: const char text[], size_t byteLength, const SkScalar pos[], int scalarsPerPosition, const SkPoint& offset); + static void DrawBmpGlyphRun(GrTextBlob*, int runIndex, GrGlyphCache*, + const SkSurfaceProps&, const GrTextUtils::Paint& paint, + SkScalerContextFlags scalerContextFlags, const SkMatrix& viewMatrix, + const SkGlyphRun& glyphRun, const SkPoint& offset); + static void DrawBmpPosTextAsPaths(GrTextBlob*, int runIndex, GrGlyphCache*, const SkSurfaceProps&, const GrTextUtils::Paint& paint, SkScalerContextFlags scalerContextFlags, -- cgit v1.2.3