OLD | NEW |
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 "skregion.proto"; | 7 import "skregion.proto"; |
8 import "skrrect.proto"; | 8 import "skrrect.proto"; |
9 import "skxfermode.proto"; | 9 import "skxfermode.proto"; |
10 import "rect.proto"; | 10 import "rect.proto"; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 67 } |
68 | 68 |
69 message CompositingDisplayItem { | 69 message CompositingDisplayItem { |
70 optional uint32 alpha = 1; | 70 optional uint32 alpha = 1; |
71 optional cc.proto.SkXfermode.Mode mode = 2; | 71 optional cc.proto.SkXfermode.Mode mode = 2; |
72 optional cc.proto.RectF bounds = 3; | 72 optional cc.proto.RectF bounds = 3; |
73 optional bytes color_filter = 4; /* SkColorFilter */ | 73 optional bytes color_filter = 4; /* SkColorFilter */ |
74 optional bool lcd_text_requires_opaque_layer = 5; | 74 optional bool lcd_text_requires_opaque_layer = 5; |
75 } | 75 } |
76 | 76 |
| 77 message SkPictureID { |
| 78 optional uint32 unique_id = 1; |
| 79 } |
| 80 |
77 message DrawingDisplayItem { | 81 message DrawingDisplayItem { |
78 optional bytes picture = 1; /* SkPicture */ | 82 optional SkPictureID id = 1; |
79 } | 83 } |
80 | 84 |
81 message FilterDisplayItem { | 85 message FilterDisplayItem { |
82 optional cc.proto.RectF bounds = 1; | 86 optional cc.proto.RectF bounds = 1; |
83 | 87 |
84 // TODO(dtrainor): Support FilterOperations. | 88 // TODO(dtrainor): Support FilterOperations. |
85 } | 89 } |
86 | 90 |
87 message FloatClipDisplayItem { | 91 message FloatClipDisplayItem { |
88 optional cc.proto.RectF clip_rect = 1; | 92 optional cc.proto.RectF clip_rect = 1; |
89 } | 93 } |
90 | 94 |
91 message TransformDisplayItem { | 95 message TransformDisplayItem { |
92 optional cc.proto.Transform transform = 1; | 96 optional cc.proto.Transform transform = 1; |
93 } | 97 } |
OLD | NEW |