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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 2286583002: Make cc::SoftwareImageDecodeController, cc::ResourcePool, and cc::StagingBufferPoo… (Closed)
Patch Set: Updated (r418783) 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
« no previous file with comments | « content/child/memory/child_memory_coordinator_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index ab786991e9b274cf3f6becf12d1d6081d87d4502..f7c17c8e21969c88243d95717aae858ea015aaae 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1696,7 +1696,12 @@ 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.
+ if (memory_coordinator_)
+ memory_coordinator_->PrepareToSuspend();
tasak 2016/09/15 10:28:01 The code is just for explaining how to invoke Prep
+
is_renderer_suspended_ = true;
renderer_scheduler_->SuspendRenderer();
}
« no previous file with comments | « content/child/memory/child_memory_coordinator_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698