Chromium Code Reviews| Index: third_party/WebKit/Source/core/dom/MemoryCoordinator.cpp |
| diff --git a/third_party/WebKit/Source/core/dom/MemoryCoordinator.cpp b/third_party/WebKit/Source/core/dom/MemoryCoordinator.cpp |
| index e7dd1e708a26f92d54eae4b25e4da5d02dbcac77..745d979f619014d132f3afd30088efb834717643 100644 |
| --- a/third_party/WebKit/Source/core/dom/MemoryCoordinator.cpp |
| +++ b/third_party/WebKit/Source/core/dom/MemoryCoordinator.cpp |
| @@ -6,6 +6,7 @@ |
| #include "core/fetch/MemoryCache.h" |
| #include "platform/TraceEvent.h" |
| +#include "platform/fonts/FontCache.h" |
| #include "platform/graphics/ImageDecodingStore.h" |
| #include "platform/heap/Heap.h" |
| #include "wtf/allocator/Partitions.h" |
| @@ -32,6 +33,7 @@ void MemoryCoordinator::onMemoryPressure(WebMemoryPressureLevel level) |
| if (level == WebMemoryPressureLevelCritical) { |
| // Clear the image cache. |
| ImageDecodingStore::instance().clear(); |
| + FontCache::fontCache()->invalidate(); |
|
tasak
2016/06/27 06:55:37
Would you add the following?
FontCache::fontCache(
|
| } |
| if (ProcessHeap::isLowEndDevice()) |
| memoryCache()->pruneAll(); |