[go: nahoru, domu]

cc/blimp: Set up the framework for state serialization.

1) Split the inputs and rest of the fields in the protos so we only
serialize the inputs for the new serialization code.
2) Add a CompositorStateDeserializer to deserialize compositor protos.

BUG=648442
CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel

Review-Url: https://codereview.chromium.org/2375363002
Cr-Commit-Position: refs/heads/master@{#423001}
diff --git a/cc/BUILD.gn b/cc/BUILD.gn
index 2bde91f3..225b6a8 100644
--- a/cc/BUILD.gn
+++ b/cc/BUILD.gn
@@ -47,8 +47,12 @@
     "blimp/client_picture_cache.h",
     "blimp/compositor_proto_state.cc",
     "blimp/compositor_proto_state.h",
+    "blimp/compositor_state_deserializer.cc",
+    "blimp/compositor_state_deserializer.h",
+    "blimp/compositor_state_deserializer_client.h",
     "blimp/engine_picture_cache.h",
     "blimp/image_serialization_processor.h",
+    "blimp/layer_factory.h",
     "blimp/layer_tree_host_remote.cc",
     "blimp/layer_tree_host_remote.h",
     "blimp/picture_data.cc",
@@ -728,6 +732,8 @@
     "test/pixel_test_software_output_device.h",
     "test/pixel_test_utils.cc",
     "test/pixel_test_utils.h",
+    "test/remote_client_layer_factory.cc",
+    "test/remote_client_layer_factory.h",
     "test/remote_proto_channel_bridge.cc",
     "test/remote_proto_channel_bridge.h",
     "test/render_pass_test_utils.cc",
@@ -841,6 +847,7 @@
     "base/spiral_iterator_unittest.cc",
     "base/tiling_data_unittest.cc",
     "base/unique_notifier_unittest.cc",
+    "blimp/compositor_state_deserializer_unittest.cc",
     "blimp/layer_tree_host_remote_unittest.cc",
     "blimp/picture_data_conversions_unittest.cc",
     "debug/layer_tree_debug_state_unittest.cc",