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

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

Issue 1407793002: Add protobuf serialization to DisplayItemList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blimp_display2
Patch Set: Comments are hard 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/proto/BUILD.gn ('k') | cc/proto/gfx_conversions.h » ('j') | 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 import "skregion.proto";
8 import "skrrect.proto";
9 import "skxfermode.proto";
10 import "rect.proto";
11 import "rectf.proto";
12 import "transform.proto";
13
14 option optimize_for = LITE_RUNTIME;
15
16 package cc.proto;
17
18 message DisplayItemListSettings {
19 optional bool use_cached_picture = 1;
20 }
21
22 message DisplayItemList {
23 repeated DisplayItem items = 1;
24 optional cc.proto.Rect layer_rect = 2;
25 optional DisplayItemListSettings settings = 3;
26 }
27
28 message DisplayItem {
29 enum Type {
30 Type_Clip = 1;
31 Type_EndClip = 2;
32 Type_ClipPath = 3;
33 Type_EndClipPath = 4;
34 Type_Compositing = 5;
35 Type_EndCompositing = 6;
36 Type_Drawing = 7;
37 Type_Filter = 8;
38 Type_EndFilter = 9;
39 Type_FloatClip = 10;
40 Type_EndFloatClip = 11;
41 Type_Transform = 12;
42 Type_EndTransform = 13;
43 }
44
45 optional Type type = 1;
46
47 // Unique DisplayItem types. |type| determines which one (if any) is valid.
48 optional ClipDisplayItem clip_item = 1000;
49 optional ClipPathDisplayItem clip_path_item = 1001;
50 optional CompositingDisplayItem compositing_item = 1002;
51 optional DrawingDisplayItem drawing_item = 1003;
52 optional FilterDisplayItem filter_item = 1004;
53 optional FloatClipDisplayItem float_clip_item = 1005;
54 optional TransformDisplayItem transform_item = 1006;
55 }
56
57 message ClipDisplayItem {
58 optional cc.proto.Rect clip_rect = 1;
59
60 repeated cc.proto.SkRRect rounded_rects = 2;
61 }
62
63 message ClipPathDisplayItem {
64 optional cc.proto.SkRegion.Op clip_op = 1;
65 optional bool antialias = 2;
66 optional bytes clip_path = 3; /* SkPath */
67 }
68
69 message CompositingDisplayItem {
70 optional uint32 alpha = 1;
71
72 optional cc.proto.SkXfermode.Mode mode = 2;
73 optional cc.proto.RectF bounds = 3;
74 optional bytes color_filter = 4; /* SkColorFilter */
75 }
76
77 message DrawingDisplayItem {
78 optional bytes picture = 1; /* SkPicture */
79 }
80
81 message FilterDisplayItem {
82 optional cc.proto.RectF bounds = 1;
83
84 // TODO(dtrainor): Support FilterOperations.
85 }
86
87 message FloatClipDisplayItem {
88 optional cc.proto.RectF clip_rect = 1;
89 }
90
91 message TransformDisplayItem {
92 optional cc.proto.Transform transform = 1;
93 }
OLDNEW
« no previous file with comments | « cc/proto/BUILD.gn ('k') | cc/proto/gfx_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698