Remove call to getMetrics from GlyphGenerator.
authorBen Wagner <bungeman@google.com>
Wed, 9 Nov 2016 18:44:00 +0000 (13:44 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Wed, 9 Nov 2016 23:02:12 +0000 (23:02 +0000)
commit03c9f566d86ca69a85256290a5fc8c52cfff6f99
tree38a8b0d2c2915aa7b936f53e1f80194bcb76929c
parent7c591161d021b7b0f04f9607a196113cdfd9916f
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>
src/gpu/GrPathRendering.cpp