From 59d997a6e1d32f2d0a3021931aed87984d15a7ee Mon Sep 17 00:00:00 2001 From: Herb Derby Date: Thu, 7 Jun 2018 12:44:09 -0400 Subject: New more efficient run builder A system for building glyph runs. In the future the builder will only live in canvas, but it's internal structures facilitate interacting with the cache a single glyph at a time. When all the bulk code is in place, only runs will be passed around. Passing the builder down the text draw stack is temporary. Change-Id: I6e3ed184b3f3a58b919377f2d31936e971bd8efa Reviewed-on: https://skia-review.googlesource.com/132928 Reviewed-by: Herb Derby Reviewed-by: Mike Klein Commit-Queue: Herb Derby --- tests/GlyphRunTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/GlyphRunTest.cpp') diff --git a/tests/GlyphRunTest.cpp b/tests/GlyphRunTest.cpp index 7a80b7be93..3b25625a7a 100644 --- a/tests/GlyphRunTest.cpp +++ b/tests/GlyphRunTest.cpp @@ -16,7 +16,7 @@ DEF_TEST(GlyphRunInfo, reporter) { SkPaint paint; paint.setTextEncoding(SkPaint::kGlyphID_TextEncoding); - SkGlyphSet glyphSet; + SkGlyphRunBuilder builder; + builder.prepareDrawText(paint, glyphs, count, SkPoint::Make(0, 0)); - SkGlyphRun::MakeFromDrawText(paint, glyphs, count, SkPoint::Make(0, 0), &glyphSet); } \ No newline at end of file -- cgit v1.2.3