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

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

Issue 2688653002: Implement OnPurgeMemory callback for RenderThreadImpl (Closed)
Patch Set: Created 3 years, 10 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
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 b414dbf4ede1cc83781c9667cf560cc335b3e18a..8dd8a6572cbc586c17eef410f592877017b42426 100644
--- a/third_party/WebKit/Source/platform/MemoryCoordinator.cpp
+++ b/third_party/WebKit/Source/platform/MemoryCoordinator.cpp
@@ -74,6 +74,12 @@ void MemoryCoordinator::onMemoryStateChange(MemoryState state) {
WTF::Partitions::decommitFreeableMemory();
}
+void MemoryCoordinator::onPurgeMemory() {
+ // TODO(tasak|bashi): Move code from onMemoryStateChange(). Currently
+ // onMemoryStateChange() is called when the purge+throttled experiment is
+ // enabled.
+}
+
void MemoryCoordinator::clearMemory() {
// Clear the image cache.
// TODO(tasak|bashi): Make ImageDecodingStore and FontCache be

Powered by Google App Engine
This is Rietveld 408576698