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

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

Issue 2732203002: blink MemoryCoordinator::onPurgeMemory should invoke each client's onPurgeMemory. (Closed)
Patch Set: Created 3 years, 9 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b8d6b7ac165e3578e2aa6d786e1d5f6f90303106..c2f7e388e72973d1f8ac46ebf5785e59d8bfd06a 100644
--- a/third_party/WebKit/Source/platform/MemoryCoordinator.cpp
+++ b/third_party/WebKit/Source/platform/MemoryCoordinator.cpp
@@ -68,6 +68,8 @@ void MemoryCoordinator::onMemoryStateChange(MemoryState state) {
}
void MemoryCoordinator::onPurgeMemory() {
+ for (auto& client : m_clients)
+ client->onPurgeMemory();
// Don't call clearMemory() because font cache invalidation always causes full
// layout. This increases tab switching cost significantly (e.g.
// en.wikipedia.org/wiki/Wikipedia). So we should not invalidate the font
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698