Chromium Code Reviews| Index: cc/proto/layer.proto |
| diff --git a/cc/proto/layer.proto b/cc/proto/layer.proto |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..44ee229f92bae02989b52c7d54446a1013cdb144 |
| --- /dev/null |
| +++ b/cc/proto/layer.proto |
| @@ -0,0 +1,30 @@ |
| +// 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. |
| + |
| +syntax = "proto2"; |
| + |
| +package cc.proto; |
| + |
| +option optimize_for = LITE_RUNTIME; |
| + |
| +// Identifies the type of cc:Layer a LayerNode represents. It is used to |
| +// facilitate reconstruction of a Layer of the correct type on the client. |
| +enum LayerType { |
| + Base = 1; |
| + |
| + // TODO(nyquist): Add the rest of the necessary LayerTypes. |
| +}; |
| + |
| +// Hierarchical structure for serializing the Layer tree. |
| +message LayerNode { |
| + // required |
|
vmpstr
2015/10/21 22:34:14
I made a few comments throughout the code, but I t
nyquist
2015/10/23 00:12:31
I've implemented this.
To explain my reasoning: W
vmpstr
2015/10/23 21:26:10
Ya that's totally understandable. However, at this
|
| + optional uint32 id = 1; |
| + // required |
| + optional LayerType type = 2; |
| + optional uint32 parent_id = 3; |
| + // A List of all the children of the current LayerNode. |
| + repeated LayerNode children = 4; |
| + optional LayerNode mask_layer = 5; |
| + optional LayerNode replica_layer = 6; |
| +} |