| Index: third_party/WebKit/Source/platform/fonts/GlyphMetricsMap.h
|
| diff --git a/third_party/WebKit/Source/platform/fonts/GlyphMetricsMap.h b/third_party/WebKit/Source/platform/fonts/GlyphMetricsMap.h
|
| index f4225f09eb345b9b8d9ee8fac903cd5a86975d99..526005333172372f76db7370df4435efe267d7f1 100644
|
| --- a/third_party/WebKit/Source/platform/fonts/GlyphMetricsMap.h
|
| +++ b/third_party/WebKit/Source/platform/fonts/GlyphMetricsMap.h
|
| @@ -57,6 +57,15 @@ public:
|
| locatePage(glyph / GlyphMetricsPage::size)->setMetricsForGlyph(glyph, metrics);
|
| }
|
|
|
| + size_t memoryUsageInBytes()
|
| + {
|
| + size_t totalValue = sizeof(*this);
|
| + if (m_pages) {
|
| + totalValue += m_pages->size() * sizeof(GlyphMetricsPage);
|
| + }
|
| + return totalValue;
|
| + }
|
| +
|
| private:
|
| class GlyphMetricsPage {
|
| USING_FAST_MALLOC(GlyphMetricsPage);
|
|
|