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

Unified Diff: cc/trees/layer_tree_host.h

Issue 1519293002: Add support for (de)serializing LayerTreeHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added framework for (de)serializing 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
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index 2dc93ee2bffcb5a45843584253e0d5e988298253..1a66e9117a0dc4cec726c16baa32ae0aa4146d71 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -69,6 +69,10 @@ struct PendingPageScaleAnimation;
struct RenderingStats;
struct ScrollAndScaleSet;
+namespace proto {
+class LayerTreeHost;
+}
+
class CC_EXPORT LayerTreeHost : public MutatorHostClient {
public:
// TODO(sad): InitParams should be a movable type so that it can be
@@ -363,6 +367,9 @@ class CC_EXPORT LayerTreeHost : public MutatorHostClient {
bool HasAnyAnimation(const Layer* layer) const;
bool HasActiveAnimation(const Layer* layer) const;
+ void ToProtobufForCommit(proto::LayerTreeHost* proto) const;
+ void FromProtobufForCommit(const proto::LayerTreeHost& proto);
+
protected:
LayerTreeHost(InitParams* params, CompositorMode mode);
void InitializeThreaded(

Powered by Google App Engine
This is Rietveld 408576698