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 |
| 22 optional int32 id = 1; |
| 23 // required |
| 24 optional LayerType type = 2; |
| 25 optional int32 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 |