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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 default_tile_grid_size(gfx::Size(256, 256)), | 57 default_tile_grid_size(gfx::Size(256, 256)), |
58 minimum_occlusion_tracking_size(gfx::Size(160, 160)), | 58 minimum_occlusion_tracking_size(gfx::Size(160, 160)), |
59 tiling_interest_area_viewport_multiplier(9.0f), | 59 tiling_interest_area_viewport_multiplier(9.0f), |
60 skewport_target_time_in_seconds(1.0f), | 60 skewport_target_time_in_seconds(1.0f), |
61 skewport_extrapolation_limit_in_content_pixels(2000), | 61 skewport_extrapolation_limit_in_content_pixels(2000), |
62 max_unused_resource_memory_percentage(100), | 62 max_unused_resource_memory_percentage(100), |
63 max_memory_for_prepaint_percentage(100), | 63 max_memory_for_prepaint_percentage(100), |
64 strict_layer_property_change_checking(false), | 64 strict_layer_property_change_checking(false), |
65 use_one_copy(false), | 65 use_one_copy(false), |
66 use_zero_copy(false), | 66 use_zero_copy(false), |
| 67 use_persistent_map_for_gpu_memory_buffers(false), |
67 enable_elastic_overscroll(false), | 68 enable_elastic_overscroll(false), |
68 use_image_texture_target(GL_TEXTURE_2D), | 69 use_image_texture_target(GL_TEXTURE_2D), |
69 ignore_root_layer_flings(false), | 70 ignore_root_layer_flings(false), |
70 scheduled_raster_task_limit(32), | 71 scheduled_raster_task_limit(32), |
71 use_occlusion_for_tile_prioritization(false), | 72 use_occlusion_for_tile_prioritization(false), |
72 record_full_layer(false), | 73 record_full_layer(false), |
73 use_display_lists(false), | 74 use_display_lists(false), |
74 verify_property_trees(false), | 75 verify_property_trees(false), |
75 gather_pixel_refs(false), | 76 gather_pixel_refs(false), |
76 max_bytes_per_copy_operation(std::numeric_limits<size_t>::max()) { | 77 max_bytes_per_copy_operation(std::numeric_limits<size_t>::max()) { |
(...skipping 16 matching lines...) Expand all Loading... |
93 using_synchronous_renderer_compositor; | 94 using_synchronous_renderer_compositor; |
94 scheduler_settings.throttle_frame_production = | 95 scheduler_settings.throttle_frame_production = |
95 !renderer_settings.disable_gpu_vsync; | 96 !renderer_settings.disable_gpu_vsync; |
96 scheduler_settings.main_thread_should_always_be_low_latency = false; | 97 scheduler_settings.main_thread_should_always_be_low_latency = false; |
97 scheduler_settings.background_frame_interval = | 98 scheduler_settings.background_frame_interval = |
98 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); | 99 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); |
99 return scheduler_settings; | 100 return scheduler_settings; |
100 } | 101 } |
101 | 102 |
102 } // namespace cc | 103 } // namespace cc |
OLD | NEW |