Index: cc/layers/layer_serializer.cc |
diff --git a/cc/layers/layer_serializer.cc b/cc/layers/layer_serializer.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2a6e2166aace5bb29df0a713280291482fccadc3 |
--- /dev/null |
+++ b/cc/layers/layer_serializer.cc |
@@ -0,0 +1,19 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "cc/layers/layer_serializer.h" |
+ |
+#include "cc/layers/layer.h" |
+#include "cc/proto/layer.pb.h" |
+ |
+namespace cc { |
+ |
+// static |
+void LayerSerializer::SerializeLayerHierarchy( |
+ const scoped_refptr<Layer> root_layer, |
+ proto::LayerNode* root_node) { |
+ root_layer->ToLayerNodeProto(root_node); |
+} |
+ |
+} // namespace cc |