OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
7 package cc.proto; | 7 package cc.proto; |
8 | 8 |
9 option optimize_for = LITE_RUNTIME; | 9 option optimize_for = LITE_RUNTIME; |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 // required | 21 // required |
22 optional int32 id = 1; | 22 optional int32 id = 1; |
23 // required | 23 // required |
24 optional LayerType type = 2; | 24 optional LayerType type = 2; |
25 optional int32 parent_id = 3; | 25 optional int32 parent_id = 3; |
26 // A List of all the children of the current LayerNode. | 26 // A List of all the children of the current LayerNode. |
27 repeated LayerNode children = 4; | 27 repeated LayerNode children = 4; |
28 optional LayerNode mask_layer = 5; | 28 optional LayerNode mask_layer = 5; |
29 optional LayerNode replica_layer = 6; | 29 optional LayerNode replica_layer = 6; |
30 } | 30 } |
| 31 |
| 32 // A container for a list of dirty layers. |
| 33 message LayerUpdate { |
| 34 // A list of dirty layers. |
| 35 repeated LayerProperties layers = 1; |
| 36 } |
| 37 |
| 38 message LayerProperties { |
| 39 // required |
| 40 optional int32 id = 1; |
| 41 // required |
| 42 optional bool needs_push_properties = 3; |
| 43 // required |
| 44 optional int32 num_dependents_need_push_properties = 4; |
| 45 |
| 46 // The properties below are only read if |needs_push_properties| is set. |
| 47 // The Layer base class and each descendant have different proto messages |
| 48 // for their specific properties. |
| 49 optional BaseLayerProperties base = 5; |
| 50 } |
| 51 |
| 52 message BaseLayerProperties { |
| 53 // TODO(nyquist): Add all the required properties below. Huzzah! |
| 54 } |
OLD | NEW |