OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 module cc.mojom; | 5 module cc.mojom; |
6 | 6 |
7 import "cc/ipc/filter_operations.mojom"; | 7 import "cc/ipc/filter_operations.mojom"; |
8 import "cc/ipc/shared_quad_state.mojom"; | 8 import "cc/ipc/shared_quad_state.mojom"; |
9 import "cc/ipc/surface_id.mojom"; | 9 import "cc/ipc/surface_id.mojom"; |
10 import "ui/gfx/geometry/mojo/geometry.mojom"; | 10 import "ui/gfx/geometry/mojo/geometry.mojom"; |
11 import "ui/gfx/mojo/transform.mojom"; | 11 import "ui/gfx/mojo/transform.mojom"; |
12 | 12 |
13 struct DebugBorderQuadState { | 13 struct DebugBorderQuadState { |
14 // Debug border color. | 14 // Debug border color. |
15 uint32 color; | 15 uint32 color; |
16 | 16 |
17 // Debug border width. | 17 // Debug border width. |
18 int32 width; | 18 int32 width; |
19 }; | 19 }; |
20 | 20 |
21 struct RenderPassQuadState { | 21 struct RenderPassQuadState { |
22 int32 render_pass_id; | 22 int32 render_pass_id; |
23 | 23 |
24 // If nonzero, resource id of mask to use when drawing this pass. | 24 // If nonzero, resource id of mask to use when drawing this pass. |
25 uint32 mask_resource_id; | 25 uint32 mask_resource_id; |
26 gfx.mojom.Vector2dF mask_uv_scale; | 26 gfx.mojom.Vector2dF mask_uv_scale; |
27 gfx.mojom.Size mask_texture_size; | 27 gfx.mojom.Size mask_texture_size; |
28 | 28 |
29 // Post-processing filters, applied to the pixels in the render pass' texture. | |
30 cc.mojom.FilterOperations filters; | |
31 | |
32 // The scale from layer space of the root layer of the render pass to | 29 // The scale from layer space of the root layer of the render pass to |
33 // the render pass physical pixels. This scale is applied to the filter | 30 // the render pass physical pixels. This scale is applied to the filter |
34 // parameters for pixel-moving filters. This scale should include | 31 // parameters for pixel-moving filters. This scale should include |
35 // content-to-target-space scale, and device pixel ratio. | 32 // content-to-target-space scale, and device pixel ratio. |
36 gfx.mojom.Vector2dF filters_scale; | 33 gfx.mojom.Vector2dF filters_scale; |
37 | 34 |
38 // The offset from the bounds of the root layer to the origin of the | 35 // The offset from the bounds of the root layer to the origin of the |
39 // original primitive. This used to correctly position crop rects, lights, | 36 // original primitive. This used to correctly position crop rects, lights, |
40 // etc. | 37 // etc. |
41 gfx.mojom.PointF filters_origin; | 38 gfx.mojom.PointF filters_origin; |
42 | |
43 // Post-processing filters, applied to the pixels showing through the | |
44 // background of the render pass, from behind it. | |
45 cc.mojom.FilterOperations background_filters; | |
46 }; | 39 }; |
47 | 40 |
48 struct SolidColorQuadState { | 41 struct SolidColorQuadState { |
49 uint32 color; | 42 uint32 color; |
50 bool force_anti_aliasing_off; | 43 bool force_anti_aliasing_off; |
51 }; | 44 }; |
52 | 45 |
53 struct StreamVideoQuadState { | 46 struct StreamVideoQuadState { |
54 uint32 resource_id; | 47 uint32 resource_id; |
55 gfx.mojom.Size resource_size_in_pixels; | 48 gfx.mojom.Size resource_size_in_pixels; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // Allows changing the rect that gets drawn to make it smaller. This value | 122 // Allows changing the rect that gets drawn to make it smaller. This value |
130 // should be clipped to |rect|. This rect lives in content space. | 123 // should be clipped to |rect|. This rect lives in content space. |
131 bool needs_blending; | 124 bool needs_blending; |
132 | 125 |
133 // Optionally holds a SharedQuadState (transforms etc) shared by multiple | 126 // Optionally holds a SharedQuadState (transforms etc) shared by multiple |
134 // quads. | 127 // quads. |
135 SharedQuadState? sqs; | 128 SharedQuadState? sqs; |
136 | 129 |
137 DrawQuadState draw_quad_state; | 130 DrawQuadState draw_quad_state; |
138 }; | 131 }; |
OLD | NEW |