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:
parent
ff5d8700b3
commit
e9bbbfe057
@ -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 {
|
||||
|
@ -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) {
|
||||
|
@ -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*);
|
||||
|
Loading…
Reference in New Issue
Block a user