Chromium Code Reviews| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 86 ManagedMemoryPolicy software_memory_policy; | 86 ManagedMemoryPolicy software_memory_policy; |
| 87 size_t decoded_image_cache_budget_bytes = 128 * 1024 * 1024; | 87 size_t decoded_image_cache_budget_bytes = 128 * 1024 * 1024; |
| 88 size_t decoded_image_working_set_budget_bytes = 128 * 1024 * 1024; | 88 size_t decoded_image_working_set_budget_bytes = 128 * 1024 * 1024; |
| 89 int max_preraster_distance_in_screen_pixels = 1000; | 89 int max_preraster_distance_in_screen_pixels = 1000; |
| 90 ResourceFormat preferred_tile_format; | 90 ResourceFormat preferred_tile_format; |
| 91 | 91 |
| 92 bool enable_color_correct_rasterization = false; | 92 bool enable_color_correct_rasterization = false; |
| 93 | 93 |
| 94 // TODO(sunxd): remove this flag when filter demoting and aa of mask layers | 94 // TODO(sunxd): remove this flag when filter demoting and aa of mask layers |
| 95 // are implemented. | 95 // are implemented. |
| 96 bool enable_mask_tiling = false; | 96 bool enable_mask_tiling = true; |
|
chrishtr
2017/06/21 15:26:56
It looks like this CL actually does two things: co
| |
| 97 | 97 |
| 98 // If set to true, the compositor may selectively defer image decodes to the | 98 // If set to true, the compositor may selectively defer image decodes to the |
| 99 // Image Decode Service and raster tiles without images until the decode is | 99 // Image Decode Service and raster tiles without images until the decode is |
| 100 // ready. | 100 // ready. |
| 101 bool enable_checker_imaging = false; | 101 bool enable_checker_imaging = false; |
| 102 | 102 |
| 103 LayerTreeDebugState initial_debug_state; | 103 LayerTreeDebugState initial_debug_state; |
| 104 | 104 |
| 105 // Indicates that the LayerTreeHost should defer commits unless it has a valid | 105 // Indicates that the LayerTreeHost should defer commits unless it has a valid |
| 106 // LocalSurfaceId set. | 106 // LocalSurfaceId set. |
| 107 bool enable_surface_synchronization = false; | 107 bool enable_surface_synchronization = false; |
| 108 | 108 |
| 109 // Indicates the case when a sub-frame gets its own LayerTree because it's | 109 // Indicates the case when a sub-frame gets its own LayerTree because it's |
| 110 // rendered in a different process from its ancestor frames. | 110 // rendered in a different process from its ancestor frames. |
| 111 bool is_layer_tree_for_subframe = false; | 111 bool is_layer_tree_for_subframe = false; |
| 112 | 112 |
| 113 // Determines whether we disallow non-exact matches when finding resources | 113 // Determines whether we disallow non-exact matches when finding resources |
| 114 // in ResourcePool. Only used for layout or pixel tests, as non-deterministic | 114 // in ResourcePool. Only used for layout or pixel tests, as non-deterministic |
| 115 // resource sizes can lead to floating point error and noise in these tests. | 115 // resource sizes can lead to floating point error and noise in these tests. |
| 116 bool disallow_non_exact_resource_reuse = false; | 116 bool disallow_non_exact_resource_reuse = false; |
| 117 }; | 117 }; |
| 118 | 118 |
| 119 } // namespace cc | 119 } // namespace cc |
| 120 | 120 |
| 121 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ | 121 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ |
| OLD | NEW |