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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "cc/base/cc_export.h" | 11 #include "cc/base/cc_export.h" |
12 #include "cc/debug/layer_tree_debug_state.h" | 12 #include "cc/debug/layer_tree_debug_state.h" |
13 #include "cc/output/managed_memory_policy.h" | 13 #include "cc/output/managed_memory_policy.h" |
14 #include "cc/output/renderer_settings.h" | 14 #include "cc/output/renderer_settings.h" |
15 #include "cc/scheduler/scheduler_settings.h" | 15 #include "cc/scheduler/scheduler_settings.h" |
16 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
17 #include "ui/gfx/geometry/size.h" | 17 #include "ui/gfx/geometry/size.h" |
18 | 18 |
19 namespace cc { | 19 namespace cc { |
20 | 20 |
21 namespace proto { | |
22 class LayerTreeSettings; | |
23 } // namespace proto | |
24 | |
21 class CC_EXPORT LayerTreeSettings { | 25 class CC_EXPORT LayerTreeSettings { |
22 public: | 26 public: |
23 LayerTreeSettings(); | 27 LayerTreeSettings(); |
24 virtual ~LayerTreeSettings(); | 28 virtual ~LayerTreeSettings(); |
25 | 29 |
26 RendererSettings renderer_settings; | 30 RendererSettings renderer_settings; |
27 bool single_thread_proxy_scheduler; | 31 bool single_thread_proxy_scheduler; |
28 bool use_external_begin_frame_source; | 32 bool use_external_begin_frame_source; |
29 bool main_frame_before_activation_enabled; | 33 bool main_frame_before_activation_enabled; |
30 bool using_synchronous_renderer_compositor; | 34 bool using_synchronous_renderer_compositor; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 bool verify_property_trees; | 78 bool verify_property_trees; |
75 bool use_property_trees; | 79 bool use_property_trees; |
76 bool image_decode_tasks_enabled; | 80 bool image_decode_tasks_enabled; |
77 bool use_compositor_animation_timelines; | 81 bool use_compositor_animation_timelines; |
78 bool wait_for_beginframe_interval; | 82 bool wait_for_beginframe_interval; |
79 int max_staging_buffer_usage_in_bytes; | 83 int max_staging_buffer_usage_in_bytes; |
80 ManagedMemoryPolicy memory_policy_; | 84 ManagedMemoryPolicy memory_policy_; |
81 | 85 |
82 LayerTreeDebugState initial_debug_state; | 86 LayerTreeDebugState initial_debug_state; |
83 | 87 |
88 bool operator==(const LayerTreeSettings& other) const; | |
vmpstr
2015/12/08 18:26:13
Can you put these above all of the variables. Also
nyquist
2015/12/08 22:44:58
Done.
| |
89 | |
90 void ToProtobuf(proto::LayerTreeSettings* proto) const; | |
91 void FromProtobuf(const proto::LayerTreeSettings& proto); | |
92 | |
84 SchedulerSettings ToSchedulerSettings() const; | 93 SchedulerSettings ToSchedulerSettings() const; |
85 }; | 94 }; |
86 | 95 |
87 } // namespace cc | 96 } // namespace cc |
88 | 97 |
89 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ | 98 #endif // CC_TREES_LAYER_TREE_SETTINGS_H_ |
OLD | NEW |