| Index: third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| diff --git a/third_party/WebKit/Source/core/fetch/FontResource.cpp b/third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| index 98cdd405bcec5d2335c2c717b63397b21e8c9cc7..969389da545fb0afb75f9791a168bd96cd8bfe78 100644
|
| --- a/third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| +++ b/third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| @@ -190,4 +190,15 @@ bool FontResource::isLowPriorityLoadingAllowedForRemoteFont() const {
|
| return true;
|
| }
|
|
|
| +void FontResource::onMemoryDump(WebMemoryDumpLevelOfDetail level,
|
| + WebProcessMemoryDump* memoryDump) const {
|
| + Resource::onMemoryDump(level, memoryDump);
|
| + if (!m_fontData)
|
| + return;
|
| + const String name = getMemoryDumpName() + "/decoded_webfont";
|
| + WebMemoryAllocatorDump* dump = memoryDump->createMemoryAllocatorDump(name);
|
| + dump->addScalar("size", "bytes", m_fontData->dataSize());
|
| + memoryDump->addSuballocation(dump->guid(), "malloc");
|
| +}
|
| +
|
| } // namespace blink
|
|
|