Expose SkGlyphCache's alloc

BUG=skia:7515

Change-Id: I3716417bd3bcf721cc5262d872c0912105e15541
Reviewed-on: https://skia-review.googlesource.com/113744
Reviewed-by: Ben Wagner <bungeman@google.com>
Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
Herb Derby 2018-03-12 13:13:51 -04:00 committed by Skia Commit-Bot
parent 62557833c7
commit 95252607e6

View File

@ -45,6 +45,11 @@ public:
/** Return a glyph that has no information if it is not already filled out. */
SkGlyph* getRawGlyphByID(SkPackedGlyphID);
/** Return the Strike's SkArenaAlloc. */
SkArenaAlloc* getAlloc() {
return &fAlloc;
}
/** Returns a glyph with valid fAdvance and fDevKern fields. The remaining fields may be
valid, but that is not guaranteed. If you require those, call getUnicharMetrics or
getGlyphIDMetrics instead.