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"; |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 // Post-processing filters, applied to the pixels in the render pass' texture. | 30 // Post-processing filters, applied to the pixels in the render pass' texture. |
31 cc.mojom.FilterOperations filters; | 31 cc.mojom.FilterOperations filters; |
32 | 32 |
33 // The scale from layer space of the root layer of the render pass to | 33 // 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 | 34 // the render pass physical pixels. This scale is applied to the filter |
35 // parameters for pixel-moving filters. This scale should include | 35 // parameters for pixel-moving filters. This scale should include |
36 // content-to-target-space scale, and device pixel ratio. | 36 // content-to-target-space scale, and device pixel ratio. |
37 gfx.mojom.Vector2dF filters_scale; | 37 gfx.mojom.Vector2dF filters_scale; |
38 | 38 |
| 39 // 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, |
| 41 // etc. |
| 42 gfx.mojom.PointF filters_origin; |
| 43 |
39 // Post-processing filters, applied to the pixels showing through the | 44 // Post-processing filters, applied to the pixels showing through the |
40 // background of the render pass, from behind it. | 45 // background of the render pass, from behind it. |
41 cc.mojom.FilterOperations background_filters; | 46 cc.mojom.FilterOperations background_filters; |
42 }; | 47 }; |
43 | 48 |
44 struct SolidColorQuadState { | 49 struct SolidColorQuadState { |
45 uint32 color; | 50 uint32 color; |
46 bool force_anti_aliasing_off; | 51 bool force_anti_aliasing_off; |
47 }; | 52 }; |
48 | 53 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // Allows changing the rect that gets drawn to make it smaller. This value | 129 // Allows changing the rect that gets drawn to make it smaller. This value |
125 // should be clipped to |rect|. This rect lives in content space. | 130 // should be clipped to |rect|. This rect lives in content space. |
126 bool needs_blending; | 131 bool needs_blending; |
127 | 132 |
128 // Optionally holds a SharedQuadState (transforms etc) shared by multiple | 133 // Optionally holds a SharedQuadState (transforms etc) shared by multiple |
129 // quads. | 134 // quads. |
130 SharedQuadState? sqs; | 135 SharedQuadState? sqs; |
131 | 136 |
132 DrawQuadState draw_quad_state; | 137 DrawQuadState draw_quad_state; |
133 }; | 138 }; |
OLD | NEW |