Remove unused dtor from GrTextStrike
Change-Id: I65c95acba080cd4465f3343ab57beb19fcbb75f2 Reviewed-on: https://skia-review.googlesource.com/c/179381 Auto-Submit: Herb Derby <herb@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com> Reviewed-by: Brian Salomon <bsalomon@google.com>
This commit is contained in:
parent
428ec1e55c
commit
44539be30e
@ -44,8 +44,6 @@ struct GrGlyph {
|
||||
fAtlasLocation.set(0, 0);
|
||||
}
|
||||
|
||||
void reset() { }
|
||||
|
||||
int width() const { return fBounds.width(); }
|
||||
int height() const { return fBounds.height(); }
|
||||
bool isEmpty() const { return fBounds.isEmpty(); }
|
||||
|
@ -192,14 +192,6 @@ static bool get_packed_glyph_image(SkGlyphCache* cache, const SkGlyph& glyph, in
|
||||
GrTextStrike::GrTextStrike(const SkDescriptor& key)
|
||||
: fFontScalerKey(key) {}
|
||||
|
||||
GrTextStrike::~GrTextStrike() {
|
||||
SkTDynamicHash<GrGlyph, GrGlyph::PackedID>::Iter iter(&fCache);
|
||||
while (!iter.done()) {
|
||||
(*iter).reset();
|
||||
++iter;
|
||||
}
|
||||
}
|
||||
|
||||
GrGlyph* GrTextStrike::generateGlyph(const SkGlyph& skGlyph, GrGlyph::PackedID packed) {
|
||||
SkIRect bounds;
|
||||
|
||||
|
@ -29,7 +29,6 @@ class GrGpu;
|
||||
class GrTextStrike : public SkNVRefCnt<GrTextStrike> {
|
||||
public:
|
||||
GrTextStrike(const SkDescriptor& fontScalerKey);
|
||||
~GrTextStrike();
|
||||
|
||||
GrGlyph* getGlyph(const SkGlyph& skGlyph, GrGlyph::PackedID packed) {
|
||||
GrGlyph* glyph = fCache.find(packed);
|
||||
|
Loading…
Reference in New Issue
Block a user