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 "third_party/khronos/GLES2/gl2.h" | 7 #include "third_party/khronos/GLES2/gl2.h" |
8 | 8 |
9 namespace cc { | 9 namespace cc { |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 scheduler_settings.timeout_and_draw_when_animation_checkerboards = | 88 scheduler_settings.timeout_and_draw_when_animation_checkerboards = |
89 timeout_and_draw_when_animation_checkerboards; | 89 timeout_and_draw_when_animation_checkerboards; |
90 scheduler_settings.using_synchronous_renderer_compositor = | 90 scheduler_settings.using_synchronous_renderer_compositor = |
91 using_synchronous_renderer_compositor; | 91 using_synchronous_renderer_compositor; |
92 scheduler_settings.enable_latency_recovery = enable_latency_recovery; | 92 scheduler_settings.enable_latency_recovery = enable_latency_recovery; |
93 scheduler_settings.background_frame_interval = | 93 scheduler_settings.background_frame_interval = |
94 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); | 94 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); |
95 return scheduler_settings; | 95 return scheduler_settings; |
96 } | 96 } |
97 | 97 |
| 98 TileManagerSettings LayerTreeSettings::ToTileManagerSettings() const { |
| 99 TileManagerSettings tile_manager_settings; |
| 100 tile_manager_settings.use_partial_raster = use_partial_raster; |
| 101 tile_manager_settings.check_tile_priority_inversion = |
| 102 check_tile_priority_inversion; |
| 103 tile_manager_settings.enable_checker_imaging = enable_checker_imaging; |
| 104 return tile_manager_settings; |
| 105 } |
| 106 |
98 } // namespace cc | 107 } // namespace cc |
OLD | NEW |