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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_settings.h" 5 #include "cc/trees/layer_tree_settings.h"
6 6
7 #include <GLES2/gl2.h> 7 #include <GLES2/gl2.h>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 enable_elastic_overscroll(false), 68 enable_elastic_overscroll(false),
69 use_image_texture_target(GL_TEXTURE_2D), 69 use_image_texture_target(GL_TEXTURE_2D),
70 ignore_root_layer_flings(false), 70 ignore_root_layer_flings(false),
71 scheduled_raster_task_limit(32), 71 scheduled_raster_task_limit(32),
72 use_occlusion_for_tile_prioritization(false), 72 use_occlusion_for_tile_prioritization(false),
73 record_full_layer(false), 73 record_full_layer(false),
74 use_display_lists(false), 74 use_display_lists(false),
75 verify_property_trees(false), 75 verify_property_trees(false),
76 gather_pixel_refs(false), 76 gather_pixel_refs(false),
77 use_compositor_animation_timelines(false), 77 use_compositor_animation_timelines(false),
78 invert_viewport_scroll_order(false) { 78 invert_viewport_scroll_order(false),
79 throttle_frame_production(true) {
danakj 2015/07/01 19:47:23 can you make this name more closely match the flag
79 } 80 }
80 81
81 LayerTreeSettings::~LayerTreeSettings() {} 82 LayerTreeSettings::~LayerTreeSettings() {}
82 83
83 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const { 84 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const {
84 SchedulerSettings scheduler_settings; 85 SchedulerSettings scheduler_settings;
85 scheduler_settings.use_external_begin_frame_source = 86 scheduler_settings.use_external_begin_frame_source =
86 use_external_begin_frame_source; 87 use_external_begin_frame_source;
87 scheduler_settings.main_frame_before_activation_enabled = 88 scheduler_settings.main_frame_before_activation_enabled =
88 main_frame_before_activation_enabled; 89 main_frame_before_activation_enabled;
89 scheduler_settings.impl_side_painting = impl_side_painting; 90 scheduler_settings.impl_side_painting = impl_side_painting;
90 scheduler_settings.timeout_and_draw_when_animation_checkerboards = 91 scheduler_settings.timeout_and_draw_when_animation_checkerboards =
91 timeout_and_draw_when_animation_checkerboards; 92 timeout_and_draw_when_animation_checkerboards;
92 scheduler_settings.maximum_number_of_failed_draws_before_draw_is_forced_ = 93 scheduler_settings.maximum_number_of_failed_draws_before_draw_is_forced_ =
93 maximum_number_of_failed_draws_before_draw_is_forced_; 94 maximum_number_of_failed_draws_before_draw_is_forced_;
94 scheduler_settings.using_synchronous_renderer_compositor = 95 scheduler_settings.using_synchronous_renderer_compositor =
95 using_synchronous_renderer_compositor; 96 using_synchronous_renderer_compositor;
96 scheduler_settings.throttle_frame_production = 97
danakj 2015/07/01 19:47:23 remove whitespace
97 !renderer_settings.disable_gpu_vsync; 98 scheduler_settings.throttle_frame_production = throttle_frame_production;
99
danakj 2015/07/01 19:47:23 remove whitespace
98 scheduler_settings.main_thread_should_always_be_low_latency = false; 100 scheduler_settings.main_thread_should_always_be_low_latency = false;
99 scheduler_settings.background_frame_interval = 101 scheduler_settings.background_frame_interval =
100 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); 102 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate);
101 return scheduler_settings; 103 return scheduler_settings;
102 } 104 }
103 105
104 } // namespace cc 106 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698