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

Unified Diff: cc/trees/layer_tree_host_in_process.cc

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: test update Created 4 years, 2 months 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/trees/layer_tree.cc ('k') | cc/trees/layer_tree_host_unittest_serialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_in_process.cc
diff --git a/cc/trees/layer_tree_host_in_process.cc b/cc/trees/layer_tree_host_in_process.cc
index 4cb7d1b8dda3cbf9a6139ebdc5ae8c3d9392e29f..14909102e47627b683535969cf1b5726f9119f72 100644
--- a/cc/trees/layer_tree_host_in_process.cc
+++ b/cc/trees/layer_tree_host_in_process.cc
@@ -983,7 +983,10 @@ void LayerTreeHostInProcess::ToProtobufForCommit(
// Serialize the LayerTree before serializing the properties. During layer
// property serialization, we clear the list |layer_that_should_properties_|
// from the LayerTree.
- layer_tree_->ToProtobuf(proto->mutable_layer_tree());
+ // The serialization code here need to serialize the complete state, including
+ // the result of the main frame update.
+ const bool inputs_only = false;
+ layer_tree_->ToProtobuf(proto->mutable_layer_tree(), inputs_only);
LayerProtoConverter::SerializeLayerProperties(this,
proto->mutable_layer_updates());
« no previous file with comments | « cc/trees/layer_tree.cc ('k') | cc/trees/layer_tree_host_unittest_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698