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

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

Issue 2646623002: cc: Remove all blimp code from cc. (Closed)
Patch Set: test build Created 3 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
« no previous file with comments | « cc/proto/compositor_message.proto ('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 "skclipop.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 DisplayItemListSettings settings = 3;
25 repeated cc.proto.Rect visual_rects = 4;
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 repeated cc.proto.SkRRect rounded_rects = 2;
60 optional bool antialias = 3;
61 }
62
63 message ClipPathDisplayItem {
64 optional cc.proto.SkClipOp.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 optional cc.proto.SkXfermode.Mode mode = 2;
72 optional cc.proto.RectF bounds = 3;
73 optional bytes color_filter = 4; /* SkColorFilter */
74 optional bool lcd_text_requires_opaque_layer = 5;
75 }
76
77 message SkPictureID {
78 optional uint32 unique_id = 1;
79 }
80
81 message DrawingDisplayItem {
82 optional SkPictureID id = 1;
83 }
84
85 message FilterDisplayItem {
86 optional cc.proto.RectF bounds = 1;
87
88 // TODO(dtrainor): Support FilterOperations.
89 }
90
91 message FloatClipDisplayItem {
92 optional cc.proto.RectF clip_rect = 1;
93 }
94
95 message TransformDisplayItem {
96 optional cc.proto.Transform transform = 1;
97 }
OLDNEW
« no previous file with comments | « cc/proto/compositor_message.proto ('k') | cc/proto/gfx_conversions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698