aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPathRendering.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2016-11-09 13:44:00 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-09 23:02:12 +0000
commit03c9f566d86ca69a85256290a5fc8c52cfff6f99 (patch)
tree38a8b0d2c2915aa7b936f53e1f80194bcb76929c /src/gpu/GrPathRendering.cpp
parent7c591161d021b7b0f04f9607a196113cdfd9916f (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.cpp2
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