Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4040)

Unified Diff: cc/trees/layer_tree_settings.h

Issue 1504273002: Add support for LayerTreeSettings (de)serialization (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased onto origin/master Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/proto/layer_tree_settings.proto ('k') | cc/trees/layer_tree_settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_settings.h
diff --git a/cc/trees/layer_tree_settings.h b/cc/trees/layer_tree_settings.h
index 9fb59cba3b4c1f6301bf75f7eeb46ffc059eb8ec..0939ba071d76828f0f345d5010f4f850864ab073 100644
--- a/cc/trees/layer_tree_settings.h
+++ b/cc/trees/layer_tree_settings.h
@@ -18,11 +18,22 @@
namespace cc {
+namespace proto {
+class LayerTreeSettings;
+} // namespace proto
+
class CC_EXPORT LayerTreeSettings {
public:
LayerTreeSettings();
virtual ~LayerTreeSettings();
+ bool operator==(const LayerTreeSettings& other) const;
+
+ void ToProtobuf(proto::LayerTreeSettings* proto) const;
+ void FromProtobuf(const proto::LayerTreeSettings& proto);
+
+ SchedulerSettings ToSchedulerSettings() const;
+
RendererSettings renderer_settings;
bool single_thread_proxy_scheduler;
bool use_external_begin_frame_source;
@@ -80,8 +91,6 @@ class CC_EXPORT LayerTreeSettings {
ManagedMemoryPolicy memory_policy_;
LayerTreeDebugState initial_debug_state;
-
- SchedulerSettings ToSchedulerSettings() const;
};
} // namespace cc
« no previous file with comments | « cc/proto/layer_tree_settings.proto ('k') | cc/trees/layer_tree_settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698