OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 syntax = "proto2"; | |
6 | |
7 package cc.proto; | |
8 | |
9 option optimize_for = LITE_RUNTIME; | |
10 | |
11 // Identifies the type of cc:Layer a LayerNode represents. It is used to | |
12 // facilitate reconstruction of a Layer of the correct type on the client. | |
13 enum LayerType { | |
14 Base = 1; | |
15 | |
16 // TODO(nyquist): Add the rest of the necessary LayerTypes. | |
17 }; | |
18 | |
19 // Hierarchical structure for serializing the Layer tree. | |
20 message LayerNode { | |
21 // 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
| |
22 optional uint32 id = 1; | |
23 // required | |
24 optional LayerType type = 2; | |
25 optional uint32 parent_id = 3; | |
26 // A List of all the children of the current LayerNode. | |
27 repeated LayerNode children = 4; | |
28 optional LayerNode mask_layer = 5; | |
29 optional LayerNode replica_layer = 6; | |
30 } | |
OLD | NEW |