diff options
author | 2016-11-09 13:44:00 -0500 | |
---|---|---|
committer | 2016-11-09 23:02:12 +0000 | |
commit | 03c9f566d86ca69a85256290a5fc8c52cfff6f99 (patch) | |
tree | 38a8b0d2c2915aa7b936f53e1f80194bcb76929c /src/gpu/GrPathRendering.cpp | |
parent | 7c591161d021b7b0f04f9607a196113cdfd9916f (diff) |
Remove call to getMetrics from GlyphGenerator.
GlyphGenerator::generatePath does not need to call getMetrics before
calling getPath. This is wasted effort, especially since the
SkScalerContext is being used directly instead of going through a glyph
cache (which would require this ordering).
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4620
Change-Id: I140a6715a1d1692b161ee3dae48e5482b6004b63
Reviewed-on: https://skia-review.googlesource.com/4620
Reviewed-by: Chris Dalton <csmartdalton@google.com>
Commit-Queue: Ben Wagner <bungeman@google.com>
Diffstat (limited to 'src/gpu/GrPathRendering.cpp')
-rw-r--r-- | src/gpu/GrPathRendering.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/gpu/GrPathRendering.cpp b/src/gpu/GrPathRendering.cpp index a859d1063d..ae5bcf643a 100644 --- a/src/gpu/GrPathRendering.cpp +++ b/src/gpu/GrPathRendering.cpp @@ -60,8 +60,6 @@ public: void generatePath(int glyphID, SkPath* out) override { SkGlyph skGlyph; skGlyph.initWithGlyphID(glyphID); - fScalerContext->getMetrics(&skGlyph); - fScalerContext->getPath(skGlyph, out); } #ifdef SK_DEBUG |