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

Unified Diff: cc/tiles/software_image_decode_cache.cc

Issue 2648323005: memory coordinator: Add MemoryCoordinatorClient::OnPurgeMemory() (Closed)
Patch Set: Created 3 years, 11 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: cc/tiles/software_image_decode_cache.cc
diff --git a/cc/tiles/software_image_decode_cache.cc b/cc/tiles/software_image_decode_cache.cc
index aa2066592517f744eaaaa1020d2ce9bf5d26c61d..2628cd96b06e0a7012a60b7994e74d452e61bc51 100644
--- a/cc/tiles/software_image_decode_cache.cc
+++ b/cc/tiles/software_image_decode_cache.cc
@@ -1163,4 +1163,9 @@ void SoftwareImageDecodeCache::OnMemoryStateChange(base::MemoryState state) {
ReduceCacheUsage();
}
+void SoftwareImageDecodeCache::OnPurgeMemory() {
+ // TODO(bashi): Make ReduceCacheUsage take a parameter and call
+ // ReduceCacheUsage(kSuspendedMaxItemsInCache). crbug.com/684287
+}
+
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698