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

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

Issue 1177383005: cc: Add command line for frame production throttle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 5 years, 6 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/gpu/render_widget_compositor.cc
diff --git a/content/renderer/gpu/render_widget_compositor.cc b/content/renderer/gpu/render_widget_compositor.cc
index 0b50b6788fd0c7447299ebc92818e68cf7bb2edc..28c024128c5024088820eda2758fbe0895ed54e1 100644
--- a/content/renderer/gpu/render_widget_compositor.cc
+++ b/content/renderer/gpu/render_widget_compositor.cc
@@ -224,8 +224,13 @@ void RenderWidgetCompositor::Initialize() {
// to keep content always crisp when possible.
settings.layer_transforms_should_scale_layer_contents = true;
- settings.renderer_settings.disable_gpu_vsync =
- cmd->HasSwitch(switches::kDisableGpuVsync);
+ settings.renderer_settings.disable_display_vsync =
danakj 2015/07/01 19:47:23 wow is this confusing. we have 2 flags that you c
brianderson 2015/07/01 20:51:57 From a code readability perspective, I agree it's
+ (cmd->HasSwitch(switches::kDisableGpuVsync) ||
+ cmd->HasSwitch(switches::kDisableDisplayVsync));
+ settings.throttle_frame_production =
+ !(cmd->HasSwitch(switches::kDisableGpuVsync) ||
+ cmd->HasSwitch(cc::switches::kDisableBeginFrameInterval));
+
settings.main_frame_before_activation_enabled =
cmd->HasSwitch(cc::switches::kEnableMainFrameBeforeActivation) &&
!cmd->HasSwitch(cc::switches::kDisableMainFrameBeforeActivation);

Powered by Google App Engine
This is Rietveld 408576698