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 #ifndef CC_TREES_LAYER_TREE_SETTINGS_H_ | 5 #ifndef CC_TREES_LAYER_TREE_SETTINGS_H_ |
6 #define CC_TREES_LAYER_TREE_SETTINGS_H_ | 6 #define CC_TREES_LAYER_TREE_SETTINGS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 int tiling_interest_area_padding = 3000; | 73 int tiling_interest_area_padding = 3000; |
74 float skewport_target_time_in_seconds = 1.0f; | 74 float skewport_target_time_in_seconds = 1.0f; |
75 int skewport_extrapolation_limit_in_screen_pixels = 2000; | 75 int skewport_extrapolation_limit_in_screen_pixels = 2000; |
76 size_t max_memory_for_prepaint_percentage = 100; | 76 size_t max_memory_for_prepaint_percentage = 100; |
77 bool use_zero_copy = false; | 77 bool use_zero_copy = false; |
78 bool use_partial_raster = false; | 78 bool use_partial_raster = false; |
79 bool enable_elastic_overscroll = false; | 79 bool enable_elastic_overscroll = false; |
80 bool ignore_root_layer_flings = false; | 80 bool ignore_root_layer_flings = false; |
81 size_t scheduled_raster_task_limit = 32; | 81 size_t scheduled_raster_task_limit = 32; |
82 bool use_occlusion_for_tile_prioritization = false; | 82 bool use_occlusion_for_tile_prioritization = false; |
83 bool verify_clip_tree_calculations = false; | |
84 bool image_decode_tasks_enabled = false; | 83 bool image_decode_tasks_enabled = false; |
85 bool use_layer_lists = false; | 84 bool use_layer_lists = false; |
86 int max_staging_buffer_usage_in_bytes = 32 * 1024 * 1024; | 85 int max_staging_buffer_usage_in_bytes = 32 * 1024 * 1024; |
87 ManagedMemoryPolicy gpu_memory_policy; | 86 ManagedMemoryPolicy gpu_memory_policy; |
88 ManagedMemoryPolicy software_memory_policy; | 87 ManagedMemoryPolicy software_memory_policy; |
89 size_t gpu_decoded_image_budget_bytes = 96 * 1024 * 1024; | 88 size_t gpu_decoded_image_budget_bytes = 96 * 1024 * 1024; |
90 size_t software_decoded_image_budget_bytes = 128 * 1024 * 1024; | 89 size_t software_decoded_image_budget_bytes = 128 * 1024 * 1024; |
91 int max_preraster_distance_in_screen_pixels = 1000; | 90 int max_preraster_distance_in_screen_pixels = 1000; |
92 | 91 |
93 // If set to true, the display item list will internally cache a SkPicture for | 92 // If set to true, the display item list will internally cache a SkPicture for |
94 // raster rather than directly using the display items. | 93 // raster rather than directly using the display items. |
95 bool use_cached_picture_raster = true; | 94 bool use_cached_picture_raster = true; |
96 bool enable_color_correct_rendering = false; | 95 bool enable_color_correct_rendering = false; |
97 | 96 |
98 // If set to true, this causes TileManager to verify that all required and NOW | 97 // If set to true, this causes TileManager to verify that all required and NOW |
99 // tiles come before lower priority tiles. | 98 // tiles come before lower priority tiles. |
100 bool check_tile_priority_inversion = false; | 99 bool check_tile_priority_inversion = false; |
101 | 100 |
102 LayerTreeDebugState initial_debug_state; | 101 LayerTreeDebugState initial_debug_state; |
103 }; | 102 }; |
104 | 103 |
105 } // namespace cc | 104 } // namespace cc |
106 | 105 |
107 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ | 106 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ |
OLD | NEW |