aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrPathRendering.cpp
diff options
context:
space:
mode:
authorGravatar Ben Wagner <bungeman@google.com>2016-11-11 14:31:06 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-11-11 21:59:54 +0000
commit6e9ac12495f3b64b6ea8860bb9f99c43cd33aa08 (patch)
tree757e4c3fe61339400866c54d51d56eb38452ccfa /src/gpu/GrPathRendering.cpp
parentbf7b620b1e44985b164a8bd68031a7613fe0bb9b (diff)
Clean up glyph id handling.
Extract SkPackedID and its strongly typed subclasses SkPackedGlyphID and SkPackedUnicharID out of SkGlyph. This simplifies the code handling these types, as well as making it clearer that we wouuld eventually like to get away from this scheme. Changes SkScalerContext::getPath to take SkPackedGlyphID. Changes SkScalerContext::generatePath to take SkGlyphID. GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4722 Change-Id: I365c0c618b7ae0d348272155fac7761a69faa920 Reviewed-on: https://skia-review.googlesource.com/4722 Commit-Queue: Ben Wagner <bungeman@google.com> Reviewed-by: Herb Derby <herb@google.com>
Diffstat (limited to 'src/gpu/GrPathRendering.cpp')
-rw-r--r--src/gpu/GrPathRendering.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gpu/GrPathRendering.cpp b/src/gpu/GrPathRendering.cpp
index ae5bcf643a..18d000a177 100644
--- a/src/gpu/GrPathRendering.cpp
+++ b/src/gpu/GrPathRendering.cpp
@@ -58,9 +58,7 @@ public:
}
void generatePath(int glyphID, SkPath* out) override {
- SkGlyph skGlyph;
- skGlyph.initWithGlyphID(glyphID);
- fScalerContext->getPath(skGlyph, out);
+ fScalerContext->getPath(glyphID, out);
}
#ifdef SK_DEBUG
bool isEqualTo(const SkDescriptor& desc) const override { return *fDesc == desc; }