diff options
author | Herb Derby <herb@google.com> | 2018-06-07 12:44:09 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-06-08 19:25:43 +0000 |
commit | 59d997a6e1d32f2d0a3021931aed87984d15a7ee (patch) | |
tree | e5f920dc6f1b33b4fcde0f1058738512e376021b /tests/GlyphRunTest.cpp | |
parent | f0aacafe9e7a74475493c71c4c3679e80a8b2a82 (diff) |
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 <herb@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Herb Derby <herb@google.com>
Diffstat (limited to 'tests/GlyphRunTest.cpp')
-rw-r--r-- | tests/GlyphRunTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |