| 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 "third_party/skia/include/core/SkColor.h" | 18 #include "third_party/skia/include/core/SkColor.h" |
| 19 #include "ui/gfx/geometry/size.h" | 19 #include "ui/gfx/geometry/size.h" |
| 20 | 20 |
| 21 namespace cc { | 21 namespace cc { |
| 22 | 22 |
| 23 namespace proto { | |
| 24 class LayerTreeSettings; | |
| 25 } // namespace proto | |
| 26 | |
| 27 class CC_EXPORT LayerTreeSettings { | 23 class CC_EXPORT LayerTreeSettings { |
| 28 public: | 24 public: |
| 29 LayerTreeSettings(); | 25 LayerTreeSettings(); |
| 30 LayerTreeSettings(const LayerTreeSettings& other); | 26 LayerTreeSettings(const LayerTreeSettings& other); |
| 31 virtual ~LayerTreeSettings(); | 27 virtual ~LayerTreeSettings(); |
| 32 | 28 |
| 33 bool operator==(const LayerTreeSettings& other) const; | 29 bool operator==(const LayerTreeSettings& other) const; |
| 34 | 30 |
| 35 void ToProtobuf(proto::LayerTreeSettings* proto) const; | |
| 36 void FromProtobuf(const proto::LayerTreeSettings& proto); | |
| 37 | |
| 38 SchedulerSettings ToSchedulerSettings() const; | 31 SchedulerSettings ToSchedulerSettings() const; |
| 39 | 32 |
| 40 RendererSettings renderer_settings; | 33 RendererSettings renderer_settings; |
| 41 bool single_thread_proxy_scheduler = true; | 34 bool single_thread_proxy_scheduler = true; |
| 42 bool main_frame_before_activation_enabled = false; | 35 bool main_frame_before_activation_enabled = false; |
| 43 bool using_synchronous_renderer_compositor = false; | 36 bool using_synchronous_renderer_compositor = false; |
| 44 bool enable_latency_recovery = true; | 37 bool enable_latency_recovery = true; |
| 45 bool can_use_lcd_text = true; | 38 bool can_use_lcd_text = true; |
| 46 bool use_distance_field_text = false; | 39 bool use_distance_field_text = false; |
| 47 bool gpu_rasterization_enabled = false; | 40 bool gpu_rasterization_enabled = false; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // If set to true, this causes TileManager to verify that all required and NOW | 98 // If set to true, this causes TileManager to verify that all required and NOW |
| 106 // tiles come before lower priority tiles. | 99 // tiles come before lower priority tiles. |
| 107 bool check_tile_priority_inversion = false; | 100 bool check_tile_priority_inversion = false; |
| 108 | 101 |
| 109 LayerTreeDebugState initial_debug_state; | 102 LayerTreeDebugState initial_debug_state; |
| 110 }; | 103 }; |
| 111 | 104 |
| 112 } // namespace cc | 105 } // namespace cc |
| 113 | 106 |
| 114 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ | 107 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ |
| OLD | NEW |