Skip to content

Commit 25b63f9

Browse files
herbderbySkia Commit-Bot
authored andcommitted
Remove getGlyphIDAdvance() from SkStrike's API
Change-Id: Id9648dfc44ec7bc7f37a281236ff5fc756f6e646 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/215610 Commit-Queue: Herb Derby <herb@google.com> Reviewed-by: Mike Klein <mtklein@google.com>
1 parent c573ec8 commit 25b63f9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/core/SkStrike.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ class SkStrike final : public SkStrikeInterface {
4545
/** Return a glyph that has no information if it is not already filled out. */
4646
SkGlyph* getRawGlyphByID(SkPackedGlyphID);
4747

48-
/** Returns a glyph with valid fAdvance and fDevKern fields. The remaining fields may be
49-
valid, but that is not guaranteed. If you require those, call getGlyphIDMetrics instead.
50-
*/
51-
const SkGlyph& getGlyphIDAdvance(SkGlyphID);
52-
5348
/** Returns a glyph with all fields valid except fImage and fPath, which may be null. If they
5449
are null, call findImage or findPath for those. If they are not null, then they are valid.
5550
@@ -187,6 +182,11 @@ class SkStrike final : public SkStrikeInterface {
187182
kHashMask = kHashCount - 1
188183
};
189184

185+
/** Returns a glyph with valid fAdvance field. The remaining fields may be
186+
valid, but that is not guaranteed. If you require those, call getGlyphIDMetrics instead.
187+
*/
188+
const SkGlyph& getGlyphIDAdvance(SkGlyphID);
189+
190190
// Return the SkGlyph* associated with MakeID. The id parameter is the
191191
// combined glyph/x/y id generated by MakeID. If it is just a glyph id
192192
// then x and y are assumed to be zero. Limit the amount of work using type.

0 commit comments

Comments
 (0)