| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 bool verify_clip_tree_calculations = false; | 83 bool verify_clip_tree_calculations = false; |
| 84 | 84 |
| 85 // TODO(khushalsagar): Enable for all client and remove this flag if possible. | 85 // TODO(khushalsagar): Enable for all client and remove this flag if possible. |
| 86 // See crbug/com/696864. | 86 // See crbug/com/696864. |
| 87 bool image_decode_tasks_enabled = false; | 87 bool image_decode_tasks_enabled = false; |
| 88 | 88 |
| 89 bool use_layer_lists = false; | 89 bool use_layer_lists = false; |
| 90 int max_staging_buffer_usage_in_bytes = 32 * 1024 * 1024; | 90 int max_staging_buffer_usage_in_bytes = 32 * 1024 * 1024; |
| 91 ManagedMemoryPolicy gpu_memory_policy; | 91 ManagedMemoryPolicy gpu_memory_policy; |
| 92 ManagedMemoryPolicy software_memory_policy; | 92 ManagedMemoryPolicy software_memory_policy; |
| 93 size_t gpu_decoded_image_budget_bytes = 96 * 1024 * 1024; | 93 size_t decoded_image_cache_budget_bytes = 128 * 1024 * 1024; |
| 94 size_t software_decoded_image_budget_bytes = 128 * 1024 * 1024; | 94 size_t decoded_image_working_set_budget_bytes = 128 * 1024 * 1024; |
| 95 int max_preraster_distance_in_screen_pixels = 1000; | 95 int max_preraster_distance_in_screen_pixels = 1000; |
| 96 | 96 |
| 97 bool enable_color_correct_rasterization = false; | 97 bool enable_color_correct_rasterization = false; |
| 98 | 98 |
| 99 // TODO(sunxd): remove this flag when filter demoting and aa of mask layers | 99 // TODO(sunxd): remove this flag when filter demoting and aa of mask layers |
| 100 // are implemented. | 100 // are implemented. |
| 101 bool enable_mask_tiling = false; | 101 bool enable_mask_tiling = false; |
| 102 | 102 |
| 103 // If set to true, the compositor may selectively defer image decodes to the | 103 // If set to true, the compositor may selectively defer image decodes to the |
| 104 // Image Decode Service and raster tiles without images until the decode is | 104 // Image Decode Service and raster tiles without images until the decode is |
| 105 // ready. | 105 // ready. |
| 106 bool enable_checker_imaging = false; | 106 bool enable_checker_imaging = false; |
| 107 | 107 |
| 108 LayerTreeDebugState initial_debug_state; | 108 LayerTreeDebugState initial_debug_state; |
| 109 | 109 |
| 110 // Indicates that the LayerTreeHost should defer commits unless it has a valid | 110 // Indicates that the LayerTreeHost should defer commits unless it has a valid |
| 111 // LocalSurfaceId set. | 111 // LocalSurfaceId set. |
| 112 bool needs_valid_local_surface_id = false; | 112 bool needs_valid_local_surface_id = false; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace cc | 115 } // namespace cc |
| 116 | 116 |
| 117 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ | 117 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ |
| OLD | NEW |