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

Unified Diff: cc/trees/layer_tree_settings.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: cc/trees/layer_tree_settings.cc
diff --git a/cc/trees/layer_tree_settings.cc b/cc/trees/layer_tree_settings.cc
index 80e356e0c3a80fa5e71602242a7c0df12a1a4d66..c78f19a78271c54cc4a27e829f2e08d2dfbd3d82 100644
--- a/cc/trees/layer_tree_settings.cc
+++ b/cc/trees/layer_tree_settings.cc
@@ -75,7 +75,8 @@ LayerTreeSettings::LayerTreeSettings()
verify_property_trees(false),
gather_pixel_refs(false),
use_compositor_animation_timelines(false),
- invert_viewport_scroll_order(false) {
+ invert_viewport_scroll_order(false),
+ throttle_frame_production(true) {
danakj 2015/07/01 19:47:23 can you make this name more closely match the flag
}
LayerTreeSettings::~LayerTreeSettings() {}
@@ -93,8 +94,9 @@ SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const {
maximum_number_of_failed_draws_before_draw_is_forced_;
scheduler_settings.using_synchronous_renderer_compositor =
using_synchronous_renderer_compositor;
- scheduler_settings.throttle_frame_production =
- !renderer_settings.disable_gpu_vsync;
+
danakj 2015/07/01 19:47:23 remove whitespace
+ scheduler_settings.throttle_frame_production = throttle_frame_production;
+
danakj 2015/07/01 19:47:23 remove whitespace
scheduler_settings.main_thread_should_always_be_low_latency = false;
scheduler_settings.background_frame_interval =
base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);

Powered by Google App Engine
This is Rietveld 408576698