From 03c9f566d86ca69a85256290a5fc8c52cfff6f99 Mon Sep 17 00:00:00 2001 From: Ben Wagner Date: Wed, 9 Nov 2016 13:44:00 -0500 Subject: [PATCH] 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 Commit-Queue: Ben Wagner --- src/gpu/GrPathRendering.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/gpu/GrPathRendering.cpp b/src/gpu/GrPathRendering.cpp index a859d10..ae5bcf6 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 -- 2.7.4