Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(410)

Side by Side Diff: cc/proto/layer.proto

Issue 1423523002: Add support for (de)serializing cc::Layer properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@serialize-layer-hierarchy
Patch Set: Addressed comments about raw pointers and new test. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « cc/layers/layer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698