| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 uint32 y_plane_resource_id; | 95 uint32 y_plane_resource_id; |
| 96 uint32 u_plane_resource_id; | 96 uint32 u_plane_resource_id; |
| 97 uint32 v_plane_resource_id; | 97 uint32 v_plane_resource_id; |
| 98 uint32 a_plane_resource_id; | 98 uint32 a_plane_resource_id; |
| 99 YUVColorSpace color_space; | 99 YUVColorSpace color_space; |
| 100 float resource_offset; | 100 float resource_offset; |
| 101 float resource_multiplier; | 101 float resource_multiplier; |
| 102 uint32 bits_per_channel; | 102 uint32 bits_per_channel; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 struct YVideoQuadState { |
| 106 uint32 resource_id; |
| 107 gfx.mojom.PointF uv_top_left; |
| 108 gfx.mojom.PointF uv_bottom_right; |
| 109 }; |
| 110 |
| 105 union DrawQuadState { | 111 union DrawQuadState { |
| 106 DebugBorderQuadState debug_border_quad_state; | 112 DebugBorderQuadState debug_border_quad_state; |
| 107 RenderPassQuadState render_pass_quad_state; | 113 RenderPassQuadState render_pass_quad_state; |
| 108 SolidColorQuadState solid_color_quad_state; | 114 SolidColorQuadState solid_color_quad_state; |
| 109 StreamVideoQuadState stream_video_quad_state; | 115 StreamVideoQuadState stream_video_quad_state; |
| 110 SurfaceQuadState surface_quad_state; | 116 SurfaceQuadState surface_quad_state; |
| 111 TextureQuadState texture_quad_state; | 117 TextureQuadState texture_quad_state; |
| 112 TileQuadState tile_quad_state; | 118 TileQuadState tile_quad_state; |
| 113 YUVVideoQuadState yuv_video_quad_state; | 119 YUVVideoQuadState yuv_video_quad_state; |
| 120 YVideoQuadState y_video_quad_state; |
| 114 }; | 121 }; |
| 115 | 122 |
| 116 struct DrawQuad { | 123 struct DrawQuad { |
| 117 // This rect, after applying the quad_transform(), gives the geometry that | 124 // This rect, after applying the quad_transform(), gives the geometry that |
| 118 // this quad should draw to. This rect lives in content space. | 125 // this quad should draw to. This rect lives in content space. |
| 119 gfx.mojom.Rect rect; | 126 gfx.mojom.Rect rect; |
| 120 | 127 |
| 121 // This specifies the region of the quad that is opaque. This rect lives in | 128 // This specifies the region of the quad that is opaque. This rect lives in |
| 122 // content space. | 129 // content space. |
| 123 gfx.mojom.Rect opaque_rect; | 130 gfx.mojom.Rect opaque_rect; |
| 124 | 131 |
| 125 // Allows changing the rect that gets drawn to make it smaller. This value | 132 // Allows changing the rect that gets drawn to make it smaller. This value |
| 126 // should be clipped to |rect|. This rect lives in content space. | 133 // should be clipped to |rect|. This rect lives in content space. |
| 127 gfx.mojom.Rect visible_rect; | 134 gfx.mojom.Rect visible_rect; |
| 128 | 135 |
| 129 // Allows changing the rect that gets drawn to make it smaller. This value | 136 // 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. | 137 // should be clipped to |rect|. This rect lives in content space. |
| 131 bool needs_blending; | 138 bool needs_blending; |
| 132 | 139 |
| 133 // Optionally holds a SharedQuadState (transforms etc) shared by multiple | 140 // Optionally holds a SharedQuadState (transforms etc) shared by multiple |
| 134 // quads. | 141 // quads. |
| 135 SharedQuadState? sqs; | 142 SharedQuadState? sqs; |
| 136 | 143 |
| 137 DrawQuadState draw_quad_state; | 144 DrawQuadState draw_quad_state; |
| 138 }; | 145 }; |
| OLD | NEW |