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

Unified Diff: content/renderer/gpu/render_widget_compositor.cc

Issue 566733004: Enable V8 idle notification after commit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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/public/common/content_switches.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index 57f0ca05b23ac92f22a2fd7bdd43c554f2601027..f32fcbbc16fd1c2233428560aa21175b655c662d 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -423,11 +423,13 @@ RenderWidgetCompositor::RenderWidgetCompositor(RenderWidget* widget,
bool threaded)
: threaded_(threaded),
widget_(widget),
- send_v8_idle_notification_after_commit_(false) {
+ send_v8_idle_notification_after_commit_(true) {
CommandLine* cmd = CommandLine::ForCurrentProcess();
- if (cmd->HasSwitch(switches::kSendV8IdleNotificationAfterCommit))
+ if (cmd->HasSwitch(switches::kEnableV8IdleNotificationAfterCommit))
send_v8_idle_notification_after_commit_ = true;
+ if (cmd->HasSwitch(switches::kDisableV8IdleNotificationAfterCommit))
+ send_v8_idle_notification_after_commit_ = false;
}
RenderWidgetCompositor::~RenderWidgetCompositor() {}
« no previous file with comments | « content/public/common/content_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698