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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2286583002: Make cc::SoftwareImageDecodeController, cc::ResourcePool, and cc::StagingBufferPoo… (Closed)
Patch Set: Updated (r418766) Created 4 years, 3 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: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index 957e6acd2b49ef0628a75c5ca74c9313e8afd310..cb1e67b3c4b7463675501858675a814ed9a6ae80 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1695,7 +1695,11 @@ void RenderThreadImpl::OnProcessPurgeAndSuspend() {
ChildThreadImpl::OnProcessPurgeAndSuspend();
if (is_renderer_suspended_)
return;
- // TODO(hajimehoshi): Implement purging e.g. cache (crbug/607077)
+ // Use ChildMemoryCoordinator to free this renderer's caches as much as
+ // possible before suspending the renderer.
+ memory_coordinator::ChildMemoryCoordinatorImpl::GetInstance()
+ ->PrepareToSuspend();
+
is_renderer_suspended_ = true;
renderer_scheduler_->SuspendRenderer();
}

Powered by Google App Engine
This is Rietveld 408576698