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

Unified Diff: cc/blimp/layer_tree_host_remote.cc

Issue 2493523003: cc: Remove unused proto conversion code. (Closed)
Patch Set: test Created 4 years, 1 month 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/BUILD.gn ('k') | cc/blimp/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/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();
« no previous file with comments | « cc/BUILD.gn ('k') | cc/blimp/layer_tree_host_unittest_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698