Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(889)

Unified Diff: third_party/WebKit/Source/platform/MemoryCoordinator.cpp

Issue 2463283002: Replace prepareToSuspend() with onMemoryStateChange(SUSPENDED) (Closed)
Patch Set: Remove prepareToSuspend Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/MemoryCoordinator.cpp
diff --git a/third_party/WebKit/Source/platform/MemoryCoordinator.cpp b/third_party/WebKit/Source/platform/MemoryCoordinator.cpp
index e447f077d49fbb344439728d0ac0e72c7b710a4e..1a6c3a2c1021fbd2cf03a1dcdbdbb5a625918dc0 100644
--- a/third_party/WebKit/Source/platform/MemoryCoordinator.cpp
+++ b/third_party/WebKit/Source/platform/MemoryCoordinator.cpp
@@ -32,12 +32,6 @@ void MemoryCoordinator::unregisterClient(MemoryCoordinatorClient* client) {
m_clients.remove(client);
}
-void MemoryCoordinator::prepareToSuspend() {
- for (auto& client : m_clients)
- client->prepareToSuspend();
- WTF::Partitions::decommitFreeableMemory();
-}
-
void MemoryCoordinator::onMemoryPressure(WebMemoryPressureLevel level) {
TRACE_EVENT0("blink", "MemoryCoordinator::onMemoryPressure");
for (auto& client : m_clients)

Powered by Google App Engine
This is Rietveld 408576698