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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 985813002: Experimental: Remove chromium shared timers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More tests Created 5 years, 9 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/blink_platform_impl_unittest.cc ('k') | content/renderer/scheduler/null_renderer_scheduler.h » ('j') | 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 419e8aa7cfc898ad0a6577df8c598ed06c22daea..adb0a706de65f9afee94c9e068939af6b08f4b09 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -824,7 +824,7 @@ bool RenderThreadImpl::Send(IPC::Message* msg) {
if (pumping_events) {
if (suspend_webkit_shared_timer)
- blink_platform_impl_->SuspendSharedTimer();
+ renderer_scheduler_->SuspendTimerQueue();
if (notify_webkit_of_modal_loop)
WebView::willEnterModalLoop();
@@ -853,7 +853,7 @@ bool RenderThreadImpl::Send(IPC::Message* msg) {
WebView::didExitModalLoop();
if (suspend_webkit_shared_timer)
- blink_platform_impl_->ResumeSharedTimer();
+ renderer_scheduler_->ResumeTimerQueue();
}
return rv;
@@ -1692,9 +1692,9 @@ void RenderThreadImpl::OnSetWebKitSharedTimersSuspended(bool suspend) {
if (suspend_webkit_shared_timer_) {
EnsureWebKitInitialized();
if (suspend) {
- blink_platform_impl_->SuspendSharedTimer();
+ renderer_scheduler_->SuspendTimerQueue();
} else {
- blink_platform_impl_->ResumeSharedTimer();
+ renderer_scheduler_->ResumeTimerQueue();
}
webkit_shared_timer_suspended_ = suspend;
}
« no previous file with comments | « content/child/blink_platform_impl_unittest.cc ('k') | content/renderer/scheduler/null_renderer_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698