| 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 30 matching lines...) Expand all Loading... |
| 41 top_controls_hide_threshold(0.5f), | 41 top_controls_hide_threshold(0.5f), |
| 42 background_animation_rate(1.0), | 42 background_animation_rate(1.0), |
| 43 default_tile_size(gfx::Size(256, 256)), | 43 default_tile_size(gfx::Size(256, 256)), |
| 44 max_untiled_layer_size(gfx::Size(512, 512)), | 44 max_untiled_layer_size(gfx::Size(512, 512)), |
| 45 minimum_occlusion_tracking_size(gfx::Size(160, 160)), | 45 minimum_occlusion_tracking_size(gfx::Size(160, 160)), |
| 46 // 3000 pixels should give sufficient area for prepainting. | 46 // 3000 pixels should give sufficient area for prepainting. |
| 47 tiling_interest_area_padding(3000), | 47 tiling_interest_area_padding(3000), |
| 48 skewport_target_time_in_seconds(1.0f), | 48 skewport_target_time_in_seconds(1.0f), |
| 49 skewport_extrapolation_limit_in_content_pixels(2000), | 49 skewport_extrapolation_limit_in_content_pixels(2000), |
| 50 max_memory_for_prepaint_percentage(100), | 50 max_memory_for_prepaint_percentage(100), |
| 51 strict_layer_property_change_checking(false), | 51 strict_layer_property_change_checking(true), |
| 52 use_zero_copy(false), | 52 use_zero_copy(false), |
| 53 use_partial_raster(false), | 53 use_partial_raster(false), |
| 54 enable_elastic_overscroll(false), | 54 enable_elastic_overscroll(false), |
| 55 use_image_texture_targets( | 55 use_image_texture_targets( |
| 56 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, | 56 static_cast<size_t>(gfx::BufferFormat::LAST) + 1, |
| 57 GL_TEXTURE_2D), | 57 GL_TEXTURE_2D), |
| 58 ignore_root_layer_flings(false), | 58 ignore_root_layer_flings(false), |
| 59 scheduled_raster_task_limit(32), | 59 scheduled_raster_task_limit(32), |
| 60 use_occlusion_for_tile_prioritization(false), | 60 use_occlusion_for_tile_prioritization(false), |
| 61 verify_property_trees(false), | 61 verify_property_trees(false), |
| (...skipping 18 matching lines...) Expand all Loading... |
| 80 timeout_and_draw_when_animation_checkerboards; | 80 timeout_and_draw_when_animation_checkerboards; |
| 81 scheduler_settings.using_synchronous_renderer_compositor = | 81 scheduler_settings.using_synchronous_renderer_compositor = |
| 82 using_synchronous_renderer_compositor; | 82 using_synchronous_renderer_compositor; |
| 83 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; | 83 scheduler_settings.throttle_frame_production = wait_for_beginframe_interval; |
| 84 scheduler_settings.background_frame_interval = | 84 scheduler_settings.background_frame_interval = |
| 85 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); | 85 base::TimeDelta::FromSecondsD(1.0 / background_animation_rate); |
| 86 return scheduler_settings; | 86 return scheduler_settings; |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // namespace cc | 89 } // namespace cc |
| OLD | NEW |