| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 float skewport_target_time_in_seconds = 1.0f; | 75 float skewport_target_time_in_seconds = 1.0f; |
| 76 int skewport_extrapolation_limit_in_screen_pixels = 2000; | 76 int skewport_extrapolation_limit_in_screen_pixels = 2000; |
| 77 size_t max_memory_for_prepaint_percentage = 100; | 77 size_t max_memory_for_prepaint_percentage = 100; |
| 78 bool use_zero_copy = false; | 78 bool use_zero_copy = false; |
| 79 bool use_partial_raster = false; | 79 bool use_partial_raster = false; |
| 80 bool enable_elastic_overscroll = false; | 80 bool enable_elastic_overscroll = false; |
| 81 bool ignore_root_layer_flings = false; | 81 bool ignore_root_layer_flings = false; |
| 82 size_t scheduled_raster_task_limit = 32; | 82 size_t scheduled_raster_task_limit = 32; |
| 83 bool use_occlusion_for_tile_prioritization = false; | 83 bool use_occlusion_for_tile_prioritization = false; |
| 84 bool verify_clip_tree_calculations = false; | 84 bool verify_clip_tree_calculations = false; |
| 85 |
| 86 // TODO(khushalsagar): Enable for all client and remove this flag if possible. |
| 87 // See crbug/com/696864. |
| 85 bool image_decode_tasks_enabled = false; | 88 bool image_decode_tasks_enabled = false; |
| 89 |
| 86 bool use_layer_lists = false; | 90 bool use_layer_lists = false; |
| 87 int max_staging_buffer_usage_in_bytes = 32 * 1024 * 1024; | 91 int max_staging_buffer_usage_in_bytes = 32 * 1024 * 1024; |
| 88 ManagedMemoryPolicy gpu_memory_policy; | 92 ManagedMemoryPolicy gpu_memory_policy; |
| 89 ManagedMemoryPolicy software_memory_policy; | 93 ManagedMemoryPolicy software_memory_policy; |
| 90 size_t gpu_decoded_image_budget_bytes = 96 * 1024 * 1024; | 94 size_t gpu_decoded_image_budget_bytes = 96 * 1024 * 1024; |
| 91 size_t software_decoded_image_budget_bytes = 128 * 1024 * 1024; | 95 size_t software_decoded_image_budget_bytes = 128 * 1024 * 1024; |
| 92 int max_preraster_distance_in_screen_pixels = 1000; | 96 int max_preraster_distance_in_screen_pixels = 1000; |
| 93 | 97 |
| 94 bool enable_color_correct_rendering = false; | 98 bool enable_color_correct_rendering = false; |
| 95 | 99 |
| 96 // If set to true, this causes TileManager to verify that all required and NOW | 100 // If set to true, this causes TileManager to verify that all required and NOW |
| 97 // tiles come before lower priority tiles. | 101 // tiles come before lower priority tiles. |
| 98 bool check_tile_priority_inversion = false; | 102 bool check_tile_priority_inversion = false; |
| 99 | 103 |
| 100 // TODO(sunxd): remove this flag when filter demoting and aa of mask layers | 104 // TODO(sunxd): remove this flag when filter demoting and aa of mask layers |
| 101 // are implemented. | 105 // are implemented. |
| 102 bool enable_mask_tiling = false; | 106 bool enable_mask_tiling = false; |
| 103 | 107 |
| 104 // If set to true, the compositor may selectively defer image decodes to the | 108 // If set to true, the compositor may selectively defer image decodes to the |
| 105 // Image Decode Service and raster tiles without images until the decode is | 109 // Image Decode Service and raster tiles without images until the decode is |
| 106 // ready. | 110 // ready. |
| 107 bool enable_checker_imaging = false; | 111 bool enable_checker_imaging = false; |
| 108 | 112 |
| 109 LayerTreeDebugState initial_debug_state; | 113 LayerTreeDebugState initial_debug_state; |
| 110 }; | 114 }; |
| 111 | 115 |
| 112 } // namespace cc | 116 } // namespace cc |
| 113 | 117 |
| 114 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ | 118 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ |
| OLD | NEW |