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/render_pass_id.mojom"; | 8 import "cc/ipc/render_pass_id.mojom"; |
9 import "cc/ipc/shared_quad_state.mojom"; | 9 import "cc/ipc/shared_quad_state.mojom"; |
10 import "cc/ipc/surface_id.mojom"; | 10 import "cc/ipc/surface_id.mojom"; |
11 import "ui/gfx/geometry/mojo/geometry.mojom"; | 11 import "ui/gfx/geometry/mojo/geometry.mojom"; |
12 import "ui/gfx/mojo/transform.mojom"; | 12 import "ui/gfx/mojo/transform.mojom"; |
13 | 13 |
14 struct DebugBorderQuadState { | 14 struct DebugBorderQuadState { |
15 // Debug border color. | 15 // Debug border color. |
16 uint32 color; | 16 uint32 color; |
17 | 17 |
18 // Debug border width. | 18 // Debug border width. |
19 int32 width; | 19 int32 width; |
20 }; | 20 }; |
21 | 21 |
22 struct RenderPassQuadState { | 22 struct RenderPassQuadState { |
23 cc.mojom.RenderPassId render_pass_id; | 23 cc.mojom.RenderPassId render_pass_id; |
24 | 24 |
25 // If nonzero, resource id of mask to use when drawing this pass. | 25 // If nonzero, resource id of mask to use when drawing this pass. |
26 uint32 mask_resource_id; | 26 uint32 mask_resource_id; |
27 gfx.mojom.Vector2dF mask_uv_scale; | 27 gfx.mojom.Vector2dF mask_uv_scale; |
28 gfx.mojom.Size mask_texture_size; | 28 gfx.mojom.Size mask_texture_size; |
29 | 29 |
30 // Post-processing filters, applied to the pixels in the render pass' texture. | |
31 cc.mojom.FilterOperations filters; | |
32 | |
33 // The scale from layer space of the root layer of the render pass to | 30 // The scale from layer space of the root layer of the render pass to |
34 // the render pass physical pixels. This scale is applied to the filter | 31 // the render pass physical pixels. This scale is applied to the filter |
35 // parameters for pixel-moving filters. This scale should include | 32 // parameters for pixel-moving filters. This scale should include |
36 // content-to-target-space scale, and device pixel ratio. | 33 // content-to-target-space scale, and device pixel ratio. |
37 gfx.mojom.Vector2dF filters_scale; | 34 gfx.mojom.Vector2dF filters_scale; |
38 | 35 |
39 // The offset from the bounds of the root layer to the origin of the | 36 // The offset from the bounds of the root layer to the origin of the |
40 // original primitive. This used to correctly position crop rects, lights, | 37 // original primitive. This used to correctly position crop rects, lights, |
41 // etc. | 38 // etc. |
42 gfx.mojom.PointF filters_origin; | 39 gfx.mojom.PointF filters_origin; |
43 | |
44 // Post-processing filters, applied to the pixels showing through the | |
45 // background of the render pass, from behind it. | |
46 cc.mojom.FilterOperations background_filters; | |
47 }; | 40 }; |
48 | 41 |
49 struct SolidColorQuadState { | 42 struct SolidColorQuadState { |
50 uint32 color; | 43 uint32 color; |
51 bool force_anti_aliasing_off; | 44 bool force_anti_aliasing_off; |
52 }; | 45 }; |
53 | 46 |
54 struct StreamVideoQuadState { | 47 struct StreamVideoQuadState { |
55 uint32 resource_id; | 48 uint32 resource_id; |
56 gfx.mojom.Size resource_size_in_pixels; | 49 gfx.mojom.Size resource_size_in_pixels; |
(...skipping 72 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 |