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 /tools/fonts/SkTestSVGTypeface.cpp | |
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 'tools/fonts/SkTestSVGTypeface.cpp')
-rw-r--r-- | tools/fonts/SkTestSVGTypeface.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/fonts/SkTestSVGTypeface.cpp b/tools/fonts/SkTestSVGTypeface.cpp index 715a28c5f0..ceb523aa72 100644 --- a/tools/fonts/SkTestSVGTypeface.cpp +++ b/tools/fonts/SkTestSVGTypeface.cpp @@ -96,10 +96,6 @@ void SkTestSVGTypeface::getFontMetrics(SkPaint::FontMetrics* metrics) const { *metrics = fFontMetrics; } -void SkTestSVGTypeface::getPath(SkGlyphID glyphID, SkPath* path) const { - path->reset(); -} - void SkTestSVGTypeface::onFilterRec(SkScalerContextRec* rec) const { rec->setHinting(SkPaint::kNo_Hinting); } @@ -244,9 +240,9 @@ protected: } } - void generatePath(SkGlyphID glyph, SkPath* path) override { - this->geTestSVGTypeface()->getPath(glyph, path); - path->transform(fMatrix); + bool generatePath(SkGlyphID glyph, SkPath* path) override { + path->reset(); + return false; } void generateFontMetrics(SkPaint::FontMetrics* metrics) override { |