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

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

Issue 1398443008: Add support for (de)serializing cc::Layer hierarchy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@review-1394353002
Patch Set: Fixed CC_EXPORT Created 5 years, 2 months 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
« cc/layers/layer_unittest.cc ('K') | « cc/proto/BUILD.gn ('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
(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 }
OLDNEW
« cc/layers/layer_unittest.cc ('K') | « cc/proto/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698