| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 max_memory_for_prepaint_percentage(100), | 91 max_memory_for_prepaint_percentage(100), |
| 92 use_zero_copy(false), | 92 use_zero_copy(false), |
| 93 use_partial_raster(false), | 93 use_partial_raster(false), |
| 94 enable_elastic_overscroll(false), | 94 enable_elastic_overscroll(false), |
| 95 use_image_texture_targets( | 95 use_image_texture_targets( |
| 96 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, | 96 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, |
| 97 GL_TEXTURE_2D), | 97 GL_TEXTURE_2D), |
| 98 ignore_root_layer_flings(false), | 98 ignore_root_layer_flings(false), |
| 99 scheduled_raster_task_limit(32), | 99 scheduled_raster_task_limit(32), |
| 100 use_occlusion_for_tile_prioritization(false), | 100 use_occlusion_for_tile_prioritization(false), |
| 101 verify_clip_tree_calculations(false), |
| 101 image_decode_tasks_enabled(false), | 102 image_decode_tasks_enabled(false), |
| 102 wait_for_beginframe_interval(true), | 103 wait_for_beginframe_interval(true), |
| 103 abort_commit_before_output_surface_creation(true), | 104 abort_commit_before_output_surface_creation(true), |
| 104 use_mouse_wheel_gestures(false), | 105 use_mouse_wheel_gestures(false), |
| 105 use_layer_lists(false), | 106 use_layer_lists(false), |
| 106 max_staging_buffer_usage_in_bytes(32 * 1024 * 1024), | 107 max_staging_buffer_usage_in_bytes(32 * 1024 * 1024), |
| 107 memory_policy_(64 * 1024 * 1024, | 108 memory_policy_(64 * 1024 * 1024, |
| 108 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING, | 109 gpu::MemoryAllocation::CUTOFF_ALLOW_EVERYTHING, |
| 109 ManagedMemoryPolicy::kDefaultNumResourcesLimit), | 110 ManagedMemoryPolicy::kDefaultNumResourcesLimit), |
| 110 use_cached_picture_raster(true) {} | 111 use_cached_picture_raster(true) {} |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 max_memory_for_prepaint_percentage == | 160 max_memory_for_prepaint_percentage == |
| 160 other.max_memory_for_prepaint_percentage && | 161 other.max_memory_for_prepaint_percentage && |
| 161 use_zero_copy == other.use_zero_copy && | 162 use_zero_copy == other.use_zero_copy && |
| 162 use_partial_raster == other.use_partial_raster && | 163 use_partial_raster == other.use_partial_raster && |
| 163 enable_elastic_overscroll == other.enable_elastic_overscroll && | 164 enable_elastic_overscroll == other.enable_elastic_overscroll && |
| 164 use_image_texture_targets == other.use_image_texture_targets && | 165 use_image_texture_targets == other.use_image_texture_targets && |
| 165 ignore_root_layer_flings == other.ignore_root_layer_flings && | 166 ignore_root_layer_flings == other.ignore_root_layer_flings && |
| 166 scheduled_raster_task_limit == other.scheduled_raster_task_limit && | 167 scheduled_raster_task_limit == other.scheduled_raster_task_limit && |
| 167 use_occlusion_for_tile_prioritization == | 168 use_occlusion_for_tile_prioritization == |
| 168 other.use_occlusion_for_tile_prioritization && | 169 other.use_occlusion_for_tile_prioritization && |
| 170 verify_clip_tree_calculations == other.verify_clip_tree_calculations && |
| 169 image_decode_tasks_enabled == other.image_decode_tasks_enabled && | 171 image_decode_tasks_enabled == other.image_decode_tasks_enabled && |
| 170 wait_for_beginframe_interval == other.wait_for_beginframe_interval && | 172 wait_for_beginframe_interval == other.wait_for_beginframe_interval && |
| 171 use_mouse_wheel_gestures == other.use_mouse_wheel_gestures && | 173 use_mouse_wheel_gestures == other.use_mouse_wheel_gestures && |
| 172 max_staging_buffer_usage_in_bytes == | 174 max_staging_buffer_usage_in_bytes == |
| 173 other.max_staging_buffer_usage_in_bytes && | 175 other.max_staging_buffer_usage_in_bytes && |
| 174 memory_policy_ == other.memory_policy_ && | 176 memory_policy_ == other.memory_policy_ && |
| 175 LayerTreeDebugState::Equal(initial_debug_state, | 177 LayerTreeDebugState::Equal(initial_debug_state, |
| 176 other.initial_debug_state) && | 178 other.initial_debug_state) && |
| 177 use_cached_picture_raster == other.use_cached_picture_raster; | 179 use_cached_picture_raster == other.use_cached_picture_raster; |
| 178 } | 180 } |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 using_synchronous_renderer_compositor; | 316 using_synchronous_renderer_compositor; |
| 315 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; | 317 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; |
| 316 scheduler_settings.background_frame_interval = | 318 scheduler_settings.background_frame_interval = |
| 317 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); | 319 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); |
| 318 scheduler_settings.abort_commit_before_output_surface_creation = | 320 scheduler_settings.abort_commit_before_output_surface_creation = |
| 319 abort_commit_before_output_surface_creation; | 321 abort_commit_before_output_surface_creation; |
| 320 return scheduler_settings; | 322 return scheduler_settings; |
| 321 } | 323 } |
| 322 | 324 |
| 323 } // namespace cc | 325 } // namespace cc |
| OLD | NEW |