OLD | NEW |
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 GL_TEXTURE_2D), | 67 GL_TEXTURE_2D), |
68 ignore_root_layer_flings(false), | 68 ignore_root_layer_flings(false), |
69 scheduled_raster_task_limit(32), | 69 scheduled_raster_task_limit(32), |
70 use_occlusion_for_tile_prioritization(false), | 70 use_occlusion_for_tile_prioritization(false), |
71 record_full_layer(false), | 71 record_full_layer(false), |
72 use_display_lists(false), | 72 use_display_lists(false), |
73 verify_property_trees(false), | 73 verify_property_trees(false), |
74 gather_pixel_refs(false), | 74 gather_pixel_refs(false), |
75 use_compositor_animation_timelines(false), | 75 use_compositor_animation_timelines(false), |
76 invert_viewport_scroll_order(false), | 76 invert_viewport_scroll_order(false), |
77 wait_for_beginframe_interval(true), | 77 wait_for_beginframe_interval(true) {} |
78 max_staging_buffers(32) {} | |
79 | 78 |
80 LayerTreeSettings::~LayerTreeSettings() {} | 79 LayerTreeSettings::~LayerTreeSettings() {} |
81 | 80 |
82 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const { | 81 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const { |
83 SchedulerSettings scheduler_settings; | 82 SchedulerSettings scheduler_settings; |
84 scheduler_settings.use_external_begin_frame_source = | 83 scheduler_settings.use_external_begin_frame_source = |
85 use_external_begin_frame_source; | 84 use_external_begin_frame_source; |
86 scheduler_settings.main_frame_before_activation_enabled = | 85 scheduler_settings.main_frame_before_activation_enabled = |
87 main_frame_before_activation_enabled; | 86 main_frame_before_activation_enabled; |
88 scheduler_settings.timeout_and_draw_when_animation_checkerboards = | 87 scheduler_settings.timeout_and_draw_when_animation_checkerboards = |
89 timeout_and_draw_when_animation_checkerboards; | 88 timeout_and_draw_when_animation_checkerboards; |
90 scheduler_settings.using_synchronous_renderer_compositor = | 89 scheduler_settings.using_synchronous_renderer_compositor = |
91 using_synchronous_renderer_compositor; | 90 using_synchronous_renderer_compositor; |
92 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; | 91 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; |
93 scheduler_settings.background_frame_interval = | 92 scheduler_settings.background_frame_interval = |
94 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); | 93 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); |
95 return scheduler_settings; | 94 return scheduler_settings; |
96 } | 95 } |
97 | 96 |
98 } // namespace cc | 97 } // namespace cc |
OLD | NEW |