Index: src/core/SkGlyphCache.h |
diff --git a/src/core/SkGlyphCache.h b/src/core/SkGlyphCache.h |
index bb34a7d977411784971c9658793ad787e7197237..a0d4afbc464327eb3b2655f09dde6748228a31c6 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; |