diff options
author | Ben Wagner <bungeman@google.com> | 2018-03-29 11:18:06 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-05 22:37:33 +0000 |
commit | 5ddb30862509967eca24ba3831cc11ed5396eee7 (patch) | |
tree | 85e8919cee2be60a66581b137ef861d783c583f4 /samplecode | |
parent | b45aac961db511e805525c6d32125e8958983ab4 (diff) |
Distinguish between glyphs with empty path and no path.
BUG=skia:4904
Change-Id: I065e3b4d8596b415ddaf094d7f9a4b65da64d4d4
Reviewed-on: https://skia-review.googlesource.com/117280
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SamplePathText.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SamplePathText.cpp b/samplecode/SamplePathText.cpp index 30c8e63088..0d04b734b4 100644 --- a/samplecode/SamplePathText.cpp +++ b/samplecode/SamplePathText.cpp @@ -29,8 +29,8 @@ public: for (int i = 0; i < 52; ++i) { // I and l are rects on OS X ... char c = "aQCDEFGH7JKLMNOPBRZTUVWXYSAbcdefghijk1mnopqrstuvwxyz"[i]; - SkGlyphID id = cache->unicharToGlyph(c); - cache->getScalerContext()->getPath(SkPackedGlyphID(id), &glyphPaths[i]); + SkPackedGlyphID id(cache->unicharToGlyph(c)); + sk_ignore_unused_variable(cache->getScalerContext()->getPath(id, &glyphPaths[i])); } for (int i = 0; i < kNumPaths; ++i) { |