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

Unified Diff: cc/layers/layer_proto_converter.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/layers/layer_proto_converter.h ('k') | cc/layers/layer_proto_converter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_proto_converter.cc
diff --git a/cc/layers/layer_proto_converter.cc b/cc/layers/layer_proto_converter.cc
index 70023b062e1e58a2f0676f72a7c7787548995094..cf65dfdc7c83903022e01bd70756e95ba3c5f9fc 100644
--- a/cc/layers/layer_proto_converter.cc
+++ b/cc/layers/layer_proto_converter.cc
@@ -23,14 +23,6 @@ LayerProtoConverter::LayerProtoConverter() {}
LayerProtoConverter::~LayerProtoConverter() {}
// static
-void LayerProtoConverter::SerializeLayerHierarchy(
- const scoped_refptr<Layer> root_layer,
- proto::LayerNode* root_node) {
- TRACE_EVENT0("cc.remote", "LayerProtoConverter::SerializeLayerHierarchy");
- root_layer->ToLayerNodeProto(root_node);
-}
-
-// static
scoped_refptr<Layer> LayerProtoConverter::DeserializeLayerHierarchy(
scoped_refptr<Layer> existing_root,
const proto::LayerNode& root_node,
@@ -57,8 +49,9 @@ void LayerProtoConverter::SerializeLayerProperties(
LayerTreeHost* host,
proto::LayerUpdate* layer_update) {
TRACE_EVENT0("cc.remote", "LayerProtoConverter::SerializeLayerProperties");
+ const bool inputs_only = false;
for (auto* layer : host->GetLayerTree()->LayersThatShouldPushProperties())
- layer->ToLayerPropertiesProto(layer_update);
+ layer->ToLayerPropertiesProto(layer_update, inputs_only);
host->GetLayerTree()->LayersThatShouldPushProperties().clear();
}
« no previous file with comments | « cc/layers/layer_proto_converter.h ('k') | cc/layers/layer_proto_converter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698