| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // 3000 pixels should give sufficient area for prepainting. | 54 // 3000 pixels should give sufficient area for prepainting. |
| 55 tiling_interest_area_padding(3000), | 55 tiling_interest_area_padding(3000), |
| 56 skewport_target_time_in_seconds(1.0f), | 56 skewport_target_time_in_seconds(1.0f), |
| 57 skewport_extrapolation_limit_in_content_pixels(2000), | 57 skewport_extrapolation_limit_in_content_pixels(2000), |
| 58 max_unused_resource_memory_percentage(100), | |
| 59 max_memory_for_prepaint_percentage(100), | 58 max_memory_for_prepaint_percentage(100), |
| 60 strict_layer_property_change_checking(false), | 59 strict_layer_property_change_checking(false), |
| 61 use_one_copy(true), | 60 use_one_copy(true), |
| 62 use_zero_copy(false), | 61 use_zero_copy(false), |
| 63 use_persistent_map_for_gpu_memory_buffers(false), | 62 use_persistent_map_for_gpu_memory_buffers(false), |
| 64 enable_elastic_overscroll(false), | 63 enable_elastic_overscroll(false), |
| 65 use_image_texture_targets( | 64 use_image_texture_targets( |
| 66 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, | 65 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, |
| 67 GL_TEXTURE_2D), | 66 GL_TEXTURE_2D), |
| 68 ignore_root_layer_flings(false), | 67 ignore_root_layer_flings(false), |
| (...skipping 20 matching lines...) Expand all Loading... |
| 89 timeout_and_draw_when_animation_checkerboards; | 88 timeout_and_draw_when_animation_checkerboards; |
| 90 scheduler_settings.using_synchronous_renderer_compositor = | 89 scheduler_settings.using_synchronous_renderer_compositor = |
| 91 using_synchronous_renderer_compositor; | 90 using_synchronous_renderer_compositor; |
| 92 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; | 91 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; |
| 93 scheduler_settings.background_frame_interval = | 92 scheduler_settings.background_frame_interval = |
| 94 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); | 93 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); |
| 95 return scheduler_settings; | 94 return scheduler_settings; |
| 96 } | 95 } |
| 97 | 96 |
| 98 } // namespace cc | 97 } // namespace cc |
| OLD | NEW |