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