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 <stddef.h> | 8 #include <stddef.h> |
9 #include <limits> | 9 #include <limits> |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 return LayerTreeSettings::ScrollbarAnimator::NO_ANIMATOR; | 50 return LayerTreeSettings::ScrollbarAnimator::NO_ANIMATOR; |
51 } | 51 } |
52 return LayerTreeSettings::ScrollbarAnimator::NO_ANIMATOR; | 52 return LayerTreeSettings::ScrollbarAnimator::NO_ANIMATOR; |
53 } | 53 } |
54 | 54 |
55 } // namespace | 55 } // namespace |
56 | 56 |
57 LayerTreeSettings::LayerTreeSettings() | 57 LayerTreeSettings::LayerTreeSettings() |
58 : single_thread_proxy_scheduler(true), | 58 : single_thread_proxy_scheduler(true), |
59 use_external_begin_frame_source(false), | 59 use_external_begin_frame_source(false), |
| 60 use_output_surface_begin_frame_source(false), |
60 main_frame_before_activation_enabled(false), | 61 main_frame_before_activation_enabled(false), |
61 using_synchronous_renderer_compositor(false), | 62 using_synchronous_renderer_compositor(false), |
62 can_use_lcd_text(true), | 63 can_use_lcd_text(true), |
63 use_distance_field_text(false), | 64 use_distance_field_text(false), |
64 gpu_rasterization_enabled(false), | 65 gpu_rasterization_enabled(false), |
65 gpu_rasterization_forced(false), | 66 gpu_rasterization_forced(false), |
66 gpu_rasterization_msaa_sample_count(0), | 67 gpu_rasterization_msaa_sample_count(0), |
67 gpu_rasterization_skewport_target_time_in_seconds(0.2f), | 68 gpu_rasterization_skewport_target_time_in_seconds(0.2f), |
68 create_low_res_tiling(false), | 69 create_low_res_tiling(false), |
69 scrollbar_animator(NO_ANIMATOR), | 70 scrollbar_animator(NO_ANIMATOR), |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 using_synchronous_renderer_compositor; | 309 using_synchronous_renderer_compositor; |
309 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; | 310 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; |
310 scheduler_settings.background_frame_interval = | 311 scheduler_settings.background_frame_interval = |
311 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); | 312 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); |
312 scheduler_settings.abort_commit_before_output_surface_creation = | 313 scheduler_settings.abort_commit_before_output_surface_creation = |
313 abort_commit_before_output_surface_creation; | 314 abort_commit_before_output_surface_creation; |
314 return scheduler_settings; | 315 return scheduler_settings; |
315 } | 316 } |
316 | 317 |
317 } // namespace cc | 318 } // namespace cc |
OLD | NEW |