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