diff options
Diffstat (limited to 'src/core/SkGlyphCache.h')
-rw-r--r-- | src/core/SkGlyphCache.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/SkGlyphCache.h b/src/core/SkGlyphCache.h index bb34a7d977..a0d4afbc46 100644 --- a/src/core/SkGlyphCache.h +++ b/src/core/SkGlyphCache.h @@ -202,7 +202,10 @@ private: SkGlyph* fGlyph; }; // no reason to use the same kHashCount as fGlyphHash, but we do for now - CharGlyphRec fCharToGlyphHash[kHashCount]; + // Dynamically allocated when chars are encountered. + SkAutoTDelete<CharGlyphRec> fCharToGlyphHash; + + CharGlyphRec* getCharGlyphRec(uint32_t id); static inline unsigned ID2HashIndex(uint32_t id) { id ^= id >> 16; |