remove unused getAdvance from SkScalerContext

Change-Id: Ia660454c30535bd18535a71253176ee0276875cf
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/334098
Reviewed-by: Mike Reed <reed@google.com>
Commit-Queue: Herb Derby <herb@google.com>
This commit is contained in:
Herb Derby 2020-11-11 12:17:04 -05:00 committed by Skia Commit-Bot
parent ff5d8700b3
commit e9bbbfe057
3 changed files with 0 additions and 11 deletions

View File

@ -21,7 +21,6 @@ class SkScalerContext;
// needs to be != to any valid SkMask::Format
#define MASK_FORMAT_UNKNOWN (0xFF)
#define MASK_FORMAT_JUST_ADVANCE MASK_FORMAT_UNKNOWN
// A combination of SkGlyphID and sub-pixel position information.
struct SkPackedGlyphID {

View File

@ -177,15 +177,6 @@ bool SkScalerContext::GetGammaLUTData(SkScalar contrast, SkScalar paintGamma, Sk
return true;
}
void SkScalerContext::getAdvance(SkGlyph* glyph) {
if (generateAdvance(glyph)) {
glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE;
} else {
this->getMetrics(glyph);
SkASSERT(glyph->fMaskFormat != MASK_FORMAT_UNKNOWN);
}
}
void SkScalerContext::getMetrics(SkGlyph* glyph) {
bool generatingImageFromPath = fGenerateImageFromPath;
if (!generatingImageFromPath) {

View File

@ -284,7 +284,6 @@ public:
bool isVertical() const { return false; }
unsigned getGlyphCount() { return this->generateGlyphCount(); }
void getAdvance(SkGlyph*);
void getMetrics(SkGlyph*);
void getImage(const SkGlyph&);
bool SK_WARN_UNUSED_RESULT getPath(SkPackedGlyphID, SkPath*);