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 745d979f619014d132f3afd30088efb834717643..a2d5ebc0c98d78bd0cccbe0a452398e46643fbe4 100644 |
--- a/third_party/WebKit/Source/core/dom/MemoryCoordinator.cpp |
+++ b/third_party/WebKit/Source/core/dom/MemoryCoordinator.cpp |
@@ -30,14 +30,15 @@ MemoryCoordinator::~MemoryCoordinator() |
void MemoryCoordinator::onMemoryPressure(WebMemoryPressureLevel level) |
{ |
TRACE_EVENT0("blink", "MemoryCoordinator::onMemoryPressure"); |
+ |
if (level == WebMemoryPressureLevelCritical) { |
// Clear the image cache. |
ImageDecodingStore::instance().clear(); |
- FontCache::fontCache()->invalidate(); |
- } |
- if (ProcessHeap::isLowEndDevice()) |
memoryCache()->pruneAll(); |
- WTF::Partitions::decommitFreeableMemory(); |
haraken
2016/07/07 09:12:25
Where is this called after your CL?
tasak
2016/07/07 09:30:59
Placed in WebMemoryCoordinator::onMemoryPressure(W
|
+ } else { |
+ if (ProcessHeap::isLowEndDevice()) |
+ memoryCache()->pruneAll(); |
+ } |
} |
} // namespace blink |