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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 other.skewport_extrapolation_limit_in_screen_pixels && | 65 other.skewport_extrapolation_limit_in_screen_pixels && |
66 max_memory_for_prepaint_percentage == | 66 max_memory_for_prepaint_percentage == |
67 other.max_memory_for_prepaint_percentage && | 67 other.max_memory_for_prepaint_percentage && |
68 use_zero_copy == other.use_zero_copy && | 68 use_zero_copy == other.use_zero_copy && |
69 use_partial_raster == other.use_partial_raster && | 69 use_partial_raster == other.use_partial_raster && |
70 enable_elastic_overscroll == other.enable_elastic_overscroll && | 70 enable_elastic_overscroll == other.enable_elastic_overscroll && |
71 ignore_root_layer_flings == other.ignore_root_layer_flings && | 71 ignore_root_layer_flings == other.ignore_root_layer_flings && |
72 scheduled_raster_task_limit == other.scheduled_raster_task_limit && | 72 scheduled_raster_task_limit == other.scheduled_raster_task_limit && |
73 use_occlusion_for_tile_prioritization == | 73 use_occlusion_for_tile_prioritization == |
74 other.use_occlusion_for_tile_prioritization && | 74 other.use_occlusion_for_tile_prioritization && |
75 verify_clip_tree_calculations == other.verify_clip_tree_calculations && | |
76 image_decode_tasks_enabled == other.image_decode_tasks_enabled && | 75 image_decode_tasks_enabled == other.image_decode_tasks_enabled && |
77 max_staging_buffer_usage_in_bytes == | 76 max_staging_buffer_usage_in_bytes == |
78 other.max_staging_buffer_usage_in_bytes && | 77 other.max_staging_buffer_usage_in_bytes && |
79 gpu_memory_policy == other.gpu_memory_policy && | 78 gpu_memory_policy == other.gpu_memory_policy && |
80 software_memory_policy == other.software_memory_policy && | 79 software_memory_policy == other.software_memory_policy && |
81 LayerTreeDebugState::Equal(initial_debug_state, | 80 LayerTreeDebugState::Equal(initial_debug_state, |
82 other.initial_debug_state) && | 81 other.initial_debug_state) && |
83 use_cached_picture_raster == other.use_cached_picture_raster; | 82 use_cached_picture_raster == other.use_cached_picture_raster; |
84 } | 83 } |
85 | 84 |
86 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const { | 85 SchedulerSettings LayerTreeSettings::ToSchedulerSettings() const { |
87 SchedulerSettings scheduler_settings; | 86 SchedulerSettings scheduler_settings; |
88 scheduler_settings.main_frame_before_activation_enabled = | 87 scheduler_settings.main_frame_before_activation_enabled = |
89 main_frame_before_activation_enabled; | 88 main_frame_before_activation_enabled; |
90 scheduler_settings.timeout_and_draw_when_animation_checkerboards = | 89 scheduler_settings.timeout_and_draw_when_animation_checkerboards = |
91 timeout_and_draw_when_animation_checkerboards; | 90 timeout_and_draw_when_animation_checkerboards; |
92 scheduler_settings.using_synchronous_renderer_compositor = | 91 scheduler_settings.using_synchronous_renderer_compositor = |
93 using_synchronous_renderer_compositor; | 92 using_synchronous_renderer_compositor; |
94 scheduler_settings.enable_latency_recovery = enable_latency_recovery; | 93 scheduler_settings.enable_latency_recovery = enable_latency_recovery; |
95 scheduler_settings.background_frame_interval = | 94 scheduler_settings.background_frame_interval = |
96 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); | 95 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); |
97 return scheduler_settings; | 96 return scheduler_settings; |
98 } | 97 } |
99 | 98 |
100 } // namespace cc | 99 } // namespace cc |
OLD | NEW |