| 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> | 
|   11  |   11  | 
|   12 #include "base/time/time.h" |   12 #include "base/time/time.h" | 
|   13 #include "cc/base/cc_export.h" |   13 #include "cc/base/cc_export.h" | 
|   14 #include "cc/debug/layer_tree_debug_state.h" |   14 #include "cc/debug/layer_tree_debug_state.h" | 
|   15 #include "cc/output/managed_memory_policy.h" |   15 #include "cc/output/managed_memory_policy.h" | 
|   16 #include "cc/output/renderer_settings.h" |   16 #include "cc/output/renderer_settings.h" | 
|   17 #include "cc/scheduler/scheduler_settings.h" |   17 #include "cc/scheduler/scheduler_settings.h" | 
 |   18 #include "cc/tiles/tile_manager_settings.h" | 
|   18 #include "third_party/skia/include/core/SkColor.h" |   19 #include "third_party/skia/include/core/SkColor.h" | 
|   19 #include "ui/gfx/geometry/size.h" |   20 #include "ui/gfx/geometry/size.h" | 
|   20  |   21  | 
|   21 namespace cc { |   22 namespace cc { | 
|   22  |   23  | 
|   23 class CC_EXPORT LayerTreeSettings { |   24 class CC_EXPORT LayerTreeSettings { | 
|   24  public: |   25  public: | 
|   25   LayerTreeSettings(); |   26   LayerTreeSettings(); | 
|   26   LayerTreeSettings(const LayerTreeSettings& other); |   27   LayerTreeSettings(const LayerTreeSettings& other); | 
|   27   virtual ~LayerTreeSettings(); |   28   virtual ~LayerTreeSettings(); | 
|   28  |   29  | 
|   29   bool operator==(const LayerTreeSettings& other) const; |   30   bool operator==(const LayerTreeSettings& other) const; | 
|   30  |   31  | 
|   31   SchedulerSettings ToSchedulerSettings() const; |   32   SchedulerSettings ToSchedulerSettings() const; | 
 |   33   TileManagerSettings ToTileManagerSettings() const; | 
|   32  |   34  | 
|   33   RendererSettings renderer_settings; |   35   RendererSettings renderer_settings; | 
|   34   bool single_thread_proxy_scheduler = true; |   36   bool single_thread_proxy_scheduler = true; | 
|   35   bool main_frame_before_activation_enabled = false; |   37   bool main_frame_before_activation_enabled = false; | 
|   36   bool using_synchronous_renderer_compositor = false; |   38   bool using_synchronous_renderer_compositor = false; | 
|   37   bool enable_latency_recovery = true; |   39   bool enable_latency_recovery = true; | 
|   38   bool can_use_lcd_text = true; |   40   bool can_use_lcd_text = true; | 
|   39   bool use_distance_field_text = false; |   41   bool use_distance_field_text = false; | 
|   40   bool gpu_rasterization_forced = false; |   42   bool gpu_rasterization_forced = false; | 
|   41   bool async_worker_context_enabled = false; |   43   bool async_worker_context_enabled = false; | 
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   88   size_t gpu_decoded_image_budget_bytes = 96 * 1024 * 1024; |   90   size_t gpu_decoded_image_budget_bytes = 96 * 1024 * 1024; | 
|   89   size_t software_decoded_image_budget_bytes = 128 * 1024 * 1024; |   91   size_t software_decoded_image_budget_bytes = 128 * 1024 * 1024; | 
|   90   int max_preraster_distance_in_screen_pixels = 1000; |   92   int max_preraster_distance_in_screen_pixels = 1000; | 
|   91  |   93  | 
|   92   bool enable_color_correct_rendering = false; |   94   bool enable_color_correct_rendering = false; | 
|   93  |   95  | 
|   94   // If set to true, this causes TileManager to verify that all required and NOW |   96   // If set to true, this causes TileManager to verify that all required and NOW | 
|   95   // tiles come before lower priority tiles. |   97   // tiles come before lower priority tiles. | 
|   96   bool check_tile_priority_inversion = false; |   98   bool check_tile_priority_inversion = false; | 
|   97  |   99  | 
 |  100   // If set to true, the compositor may selectively defer image decodes to the | 
 |  101   // Image Decode Service and raster tiles without images until the decode is | 
 |  102   // ready. | 
 |  103   bool enable_checker_imaging = false; | 
 |  104  | 
|   98   LayerTreeDebugState initial_debug_state; |  105   LayerTreeDebugState initial_debug_state; | 
|   99 }; |  106 }; | 
|  100  |  107  | 
|  101 }  // namespace cc |  108 }  // namespace cc | 
|  102  |  109  | 
|  103 #endif  // CC_TREES_LAYER_TREE_SETTINGS_H_ |  110 #endif  // CC_TREES_LAYER_TREE_SETTINGS_H_ | 
| OLD | NEW |