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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 1895773002: Move responsiblity of tab suspending from renderer to TabManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix time Created 4 years, 8 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 5126b349b06b6168f16dd8caa396a45033cbc552..ef7432ab14f44e94cc08ff8d089fd2b8fc839842 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -1772,6 +1772,11 @@ void RenderThreadImpl::OnProcessBackgrounded(bool backgrounded) {
renderer_scheduler_->OnRendererForegrounded();
}
+void RenderThreadImpl::OnProcessSuspend() {
+ ChildThreadImpl::OnProcessSuspend();
+ renderer_scheduler_->OnRendererSuspend();
+}
+
void RenderThreadImpl::OnCreateNewFrame(FrameMsg_NewFrame_Params params) {
CompositorDependencies* compositor_deps = this;
RenderFrameImpl::CreateFrame(

Powered by Google App Engine
This is Rietveld 408576698