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

Unified Diff: cc/layers/layer_proto_converter.cc

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: tests 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
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..03366393fc2f23664a6a963f422d4285f2d45fe8 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,
@@ -58,7 +50,7 @@ void LayerProtoConverter::SerializeLayerProperties(
proto::LayerUpdate* layer_update) {
TRACE_EVENT0("cc.remote", "LayerProtoConverter::SerializeLayerProperties");
for (auto* layer : host->GetLayerTree()->LayersThatShouldPushProperties())
- layer->ToLayerPropertiesProto(layer_update);
+ layer->ToLayerPropertiesProto(layer_update, false);
ajuma 2016/10/04 15:45:10 Please create a variable for the bool argument.
Khushal 2016/10/04 18:34:47 Done.
host->GetLayerTree()->LayersThatShouldPushProperties().clear();
}

Powered by Google App Engine
This is Rietveld 408576698