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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 10690023: Upstream support for WebKit shared timer toggling. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/renderer/render_thread_impl.h ('k') | content/test/mock_render_thread.cc » ('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 0cb91368ccc5c37f0bc30a9faf469f5268b5da20..4d96d4548aa433d6373e371d5cd574a4de43eed0 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -728,6 +728,21 @@ void RenderThreadImpl::SetIdleNotificationDelayInMs(
idle_notification_delay_in_ms_ = idle_notification_delay_in_ms;
}
+void RenderThreadImpl::ToggleWebKitSharedTimer(bool suspend) {
+ if (suspend_webkit_shared_timer_) {
+ EnsureWebKitInitialized();
+ if (suspend) {
+ webkit_platform_support_->SuspendSharedTimer();
+ } else {
+ webkit_platform_support_->ResumeSharedTimer();
+ }
+ }
+}
+
+void RenderThreadImpl::UpdateHistograms(int sequence_number) {
+ child_histogram_message_filter()->SendHistograms(sequence_number);
+}
+
void RenderThreadImpl::PostponeIdleNotification() {
idle_notifications_to_skip_ = 2;
}
@@ -775,10 +790,6 @@ void RenderThreadImpl::ReleaseCachedFonts() {
#endif // OS_WIN
-void RenderThreadImpl::UpdateHistograms(int sequence_number) {
- child_histogram_message_filter()->SendHistograms(sequence_number);
-}
-
bool RenderThreadImpl::IsWebFrameValid(WebKit::WebFrame* web_frame) {
if (!web_frame)
return false; // We must be shutting down.
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698