| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 layers_always_allowed_lcd_text(false), | 78 layers_always_allowed_lcd_text(false), |
| 79 minimum_contents_scale(0.0625f), | 79 minimum_contents_scale(0.0625f), |
| 80 low_res_contents_scale_factor(0.25f), | 80 low_res_contents_scale_factor(0.25f), |
| 81 top_controls_show_threshold(0.5f), | 81 top_controls_show_threshold(0.5f), |
| 82 top_controls_hide_threshold(0.5f), | 82 top_controls_hide_threshold(0.5f), |
| 83 background_animation_rate(1.0), | 83 background_animation_rate(1.0), |
| 84 default_tile_size(gfx::Size(256, 256)), | 84 default_tile_size(gfx::Size(256, 256)), |
| 85 max_untiled_layer_size(gfx::Size(512, 512)), | 85 max_untiled_layer_size(gfx::Size(512, 512)), |
| 86 minimum_occlusion_tracking_size(gfx::Size(160, 160)), | 86 minimum_occlusion_tracking_size(gfx::Size(160, 160)), |
| 87 // 3000 pixels should give sufficient area for prepainting. | 87 // 3000 pixels should give sufficient area for prepainting. |
| 88 // Note this value is specified with an ideal contents scale in mind. That |
| 89 // is, the ideal tiling would use this value as the padding. |
| 90 // TODO(vmpstr): Figure out a better number that doesn't depend on scale. |
| 88 tiling_interest_area_padding(3000), | 91 tiling_interest_area_padding(3000), |
| 89 skewport_target_time_in_seconds(1.0f), | 92 skewport_target_time_in_seconds(1.0f), |
| 90 skewport_extrapolation_limit_in_screen_pixels(2000), | 93 skewport_extrapolation_limit_in_screen_pixels(2000), |
| 91 max_memory_for_prepaint_percentage(100), | 94 max_memory_for_prepaint_percentage(100), |
| 92 use_zero_copy(false), | 95 use_zero_copy(false), |
| 93 use_partial_raster(false), | 96 use_partial_raster(false), |
| 94 enable_elastic_overscroll(false), | 97 enable_elastic_overscroll(false), |
| 95 use_image_texture_targets( | 98 use_image_texture_targets( |
| 96 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, | 99 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, |
| 97 GL_TEXTURE_2D), | 100 GL_TEXTURE_2D), |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 using_synchronous_renderer_compositor; | 321 using_synchronous_renderer_compositor; |
| 319 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; | 322 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; |
| 320 scheduler_settings.background_frame_interval = | 323 scheduler_settings.background_frame_interval = |
| 321 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); | 324 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); |
| 322 scheduler_settings.abort_commit_before_output_surface_creation = | 325 scheduler_settings.abort_commit_before_output_surface_creation = |
| 323 abort_commit_before_output_surface_creation; | 326 abort_commit_before_output_surface_creation; |
| 324 return scheduler_settings; | 327 return scheduler_settings; |
| 325 } | 328 } |
| 326 | 329 |
| 327 } // namespace cc | 330 } // namespace cc |
| OLD | NEW |