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

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

Issue 1581693010: Add support for (de)serializing HeadsUpDisplayLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix naming nit Created 4 years, 11 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
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 import "display_list_recording_source.proto"; 7 import "display_list_recording_source.proto";
8 import "layer_position_constraint.proto"; 8 import "layer_position_constraint.proto";
9 import "point3f.proto"; 9 import "point3f.proto";
10 import "pointf.proto"; 10 import "pointf.proto";
11 import "region.proto"; 11 import "region.proto";
12 import "rect.proto"; 12 import "rect.proto";
13 import "scroll_offset.proto"; 13 import "scroll_offset.proto";
14 import "size.proto"; 14 import "size.proto";
15 import "skxfermode.proto"; 15 import "skxfermode.proto";
16 import "transform.proto"; 16 import "transform.proto";
17 import "vector2df.proto"; 17 import "vector2df.proto";
18 18
19 package cc.proto; 19 package cc.proto;
20 20
21 option optimize_for = LITE_RUNTIME; 21 option optimize_for = LITE_RUNTIME;
22 22
23 // Identifies the type of cc:Layer a LayerNode represents. It is used to 23 // Identifies the type of cc:Layer a LayerNode represents. It is used to
24 // facilitate reconstruction of a Layer of the correct type on the client. 24 // facilitate reconstruction of a Layer of the correct type on the client.
25 enum LayerType { 25 enum LayerType {
26 UNKNOWN = 0; 26 UNKNOWN = 0;
27 LAYER = 1; 27 LAYER = 1;
28 PICTURE_LAYER = 2; 28 PICTURE_LAYER = 2;
29 HEADS_UP_DISPLAY_LAYER = 3;
29 30
30 // TODO(nyquist): Add the rest of the necessary LayerTypes. 31 // TODO(nyquist): Add the rest of the necessary LayerTypes.
31 }; 32 };
32 33
33 // Hierarchical structure for serializing the Layer tree. 34 // Hierarchical structure for serializing the Layer tree.
34 message LayerNode { 35 message LayerNode {
35 // required 36 // required
36 optional int32 id = 1; 37 optional int32 id = 1;
37 // required 38 // required
38 optional LayerType type = 2; 39 optional LayerType type = 2;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 132 }
132 133
133 message PictureLayerProperties { 134 message PictureLayerProperties {
134 optional DisplayListRecordingSource recording_source = 1; 135 optional DisplayListRecordingSource recording_source = 1;
135 optional Region invalidation = 2; 136 optional Region invalidation = 2;
136 optional Rect last_updated_visible_layer_rect = 3; 137 optional Rect last_updated_visible_layer_rect = 3;
137 optional bool is_mask = 4; 138 optional bool is_mask = 4;
138 optional bool nearest_neighbor = 5; 139 optional bool nearest_neighbor = 5;
139 140
140 optional int64 update_source_frame_number = 6; 141 optional int64 update_source_frame_number = 6;
141 } 142 }
OLDNEW
« no previous file with comments | « cc/layers/layer_proto_converter_unittest.cc ('k') | cc/trees/layer_tree_host_unittest_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698