Chromium Code Reviews| Index: third_party/WebKit/Source/platform/exported/Platform.cpp |
| diff --git a/third_party/WebKit/Source/platform/exported/Platform.cpp b/third_party/WebKit/Source/platform/exported/Platform.cpp |
| index 72904f70552b179fefbf22415ce953f662f5ff87..cc6131babc35ea52e0b3ad3ea47495ab372da972 100644 |
| --- a/third_party/WebKit/Source/platform/exported/Platform.cpp |
| +++ b/third_party/WebKit/Source/platform/exported/Platform.cpp |
| @@ -31,6 +31,7 @@ |
| #include "base/thread_task_runner_handle.h" |
| #include "base/trace_event/memory_dump_manager.h" |
| #include "platform/PartitionAllocMemoryDumpProvider.h" |
| +#include "platform/fonts/FontCacheMemoryDumpProvider.h" |
| #include "platform/graphics/CompositorFactory.h" |
| #include "platform/web_memory_dump_provider_adapter.h" |
| #include "public/platform/Platform.h" |
| @@ -68,10 +69,12 @@ void Platform::initialize(Platform* platform) |
| s_platform->registerMemoryDumpProvider(PartitionAllocMemoryDumpProvider::instance(), "PartitionAlloc"); |
| CompositorFactory::initializeDefault(); |
| + platform->registerMemoryDumpProvider(FontCacheMemoryDumpProvider::instance(), "FontCaches"); |
|
sof
2016/03/09 16:41:39
Needs a null check (or ~TestingPlatformSupport cha
|
| } |
| void Platform::shutdown() |
| { |
| + s_platform->unregisterMemoryDumpProvider(FontCacheMemoryDumpProvider::instance()); |
| CompositorFactory::shutdown(); |
| if (s_platform->m_mainThread) |