| Index: cc/blimp/layer_tree_host_remote.cc
|
| diff --git a/cc/blimp/layer_tree_host_remote.cc b/cc/blimp/layer_tree_host_remote.cc
|
| index 4453f9e6c12e99aa8dd7353c21e798b39892bc1e..466a4209370460a429f6a3f943a2e735f5de5b43 100644
|
| --- a/cc/blimp/layer_tree_host_remote.cc
|
| +++ b/cc/blimp/layer_tree_host_remote.cc
|
| @@ -512,21 +512,19 @@ void LayerTreeHostRemote::SetTaskRunnerProviderForTesting(
|
|
|
| void LayerTreeHostRemote::SerializeCurrentState(
|
| proto::LayerTreeHost* layer_tree_host_proto) {
|
| - // We need to serialize only the inputs received from the embedder.
|
| - const bool inputs_only = true;
|
| -
|
| // Serialize the LayerTree.
|
| - layer_tree_->ToProtobuf(layer_tree_host_proto->mutable_layer_tree(),
|
| - inputs_only);
|
| + layer_tree_->ToProtobuf(layer_tree_host_proto->mutable_layer_tree());
|
|
|
| // Serialize the dirty layers.
|
| std::unordered_set<Layer*> layers_need_push_properties;
|
| layers_need_push_properties.swap(
|
| layer_tree_->LayersThatShouldPushProperties());
|
|
|
| - for (auto* layer : layers_need_push_properties)
|
| - layer->ToLayerPropertiesProto(
|
| - layer_tree_host_proto->mutable_layer_updates(), inputs_only);
|
| + for (auto* layer : layers_need_push_properties) {
|
| + proto::LayerProperties* layer_properties =
|
| + layer_tree_host_proto->mutable_layer_updates()->add_layers();
|
| + layer->ToLayerPropertiesProto(layer_properties);
|
| + }
|
|
|
| std::vector<PictureData> pictures =
|
| engine_picture_cache_->CalculateCacheUpdateAndFlush();
|
|
|