aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/text/GrTextContext.h
diff options
context:
space:
mode:
authorGravatar Herb Derby <herb@google.com>2018-07-27 15:36:49 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-07-27 20:55:16 +0000
commit46dbfbb528305fc7c7bd4f8cca56dc4321761511 (patch)
treec7332365407da6063f15a9e262e324a843be07c8 /src/gpu/text/GrTextContext.h
parent79f99f7bf22859f4cee31ee6652141b507ea7141 (diff)
Make regenerateGlyphRunList on use the iterator
Change-Id: Iba68c94a62b535031594dcff46fd73ed36613b95 Reviewed-on: https://skia-review.googlesource.com/144120 Commit-Queue: Herb Derby <herb@google.com> Auto-Submit: Herb Derby <herb@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/text/GrTextContext.h')
-rw-r--r--src/gpu/text/GrTextContext.h8
1 files changed, 7 insertions, 1 deletions
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,