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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 minimum_contents_scale(0.0625f), | 44 minimum_contents_scale(0.0625f), |
45 low_res_contents_scale_factor(0.25f), | 45 low_res_contents_scale_factor(0.25f), |
46 top_controls_show_threshold(0.5f), | 46 top_controls_show_threshold(0.5f), |
47 top_controls_hide_threshold(0.5f), | 47 top_controls_hide_threshold(0.5f), |
48 background_animation_rate(1.0), | 48 background_animation_rate(1.0), |
49 max_partial_texture_updates(std::numeric_limits<size_t>::max()), | 49 max_partial_texture_updates(std::numeric_limits<size_t>::max()), |
50 default_tile_size(gfx::Size(256, 256)), | 50 default_tile_size(gfx::Size(256, 256)), |
51 max_untiled_layer_size(gfx::Size(512, 512)), | 51 max_untiled_layer_size(gfx::Size(512, 512)), |
52 default_tile_grid_size(gfx::Size(256, 256)), | 52 default_tile_grid_size(gfx::Size(256, 256)), |
53 minimum_occlusion_tracking_size(gfx::Size(160, 160)), | 53 minimum_occlusion_tracking_size(gfx::Size(160, 160)), |
54 use_pinch_zoom_scrollbars(false), | |
55 use_pinch_virtual_viewport(false), | 54 use_pinch_virtual_viewport(false), |
56 // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels. | 55 // At 256x256 tiles, 128 tiles cover an area of 2048x4096 pixels. |
57 max_tiles_for_interest_area(128), | 56 max_tiles_for_interest_area(128), |
58 skewport_target_time_in_seconds(1.0f), | 57 skewport_target_time_in_seconds(1.0f), |
59 skewport_extrapolation_limit_in_content_pixels(2000), | 58 skewport_extrapolation_limit_in_content_pixels(2000), |
60 max_unused_resource_memory_percentage(100), | 59 max_unused_resource_memory_percentage(100), |
61 max_memory_for_prepaint_percentage(100), | 60 max_memory_for_prepaint_percentage(100), |
62 strict_layer_property_change_checking(false), | 61 strict_layer_property_change_checking(false), |
63 use_one_copy(false), | 62 use_one_copy(false), |
64 use_zero_copy(false), | 63 use_zero_copy(false), |
(...skipping 26 matching lines...) Expand all Loading... |
91 scheduler_settings.using_synchronous_renderer_compositor = | 90 scheduler_settings.using_synchronous_renderer_compositor = |
92 using_synchronous_renderer_compositor; | 91 using_synchronous_renderer_compositor; |
93 scheduler_settings.throttle_frame_production = throttle_frame_production; | 92 scheduler_settings.throttle_frame_production = throttle_frame_production; |
94 scheduler_settings.main_thread_should_always_be_low_latency = false; | 93 scheduler_settings.main_thread_should_always_be_low_latency = false; |
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 |