| 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/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"; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 gfx.mojom.Size uv_tex_size; | 88 gfx.mojom.Size uv_tex_size; |
| 89 uint32 y_plane_resource_id; | 89 uint32 y_plane_resource_id; |
| 90 uint32 u_plane_resource_id; | 90 uint32 u_plane_resource_id; |
| 91 uint32 v_plane_resource_id; | 91 uint32 v_plane_resource_id; |
| 92 uint32 a_plane_resource_id; | 92 uint32 a_plane_resource_id; |
| 93 YUVColorSpace color_space; | 93 YUVColorSpace color_space; |
| 94 float resource_offset; | 94 float resource_offset; |
| 95 float resource_multiplier; | 95 float resource_multiplier; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 struct YVideoQuadState { |
| 99 uint32 resource_id; |
| 100 gfx.mojom.PointF uv_top_left; |
| 101 gfx.mojom.PointF uv_bottom_right; |
| 102 }; |
| 103 |
| 98 enum Material { | 104 enum Material { |
| 99 INVALID, | 105 INVALID, |
| 100 DEBUG_BORDER, | 106 DEBUG_BORDER, |
| 101 PICTURE_CONTENT, | 107 PICTURE_CONTENT, |
| 102 RENDER_PASS, | 108 RENDER_PASS, |
| 103 SOLID_COLOR, | 109 SOLID_COLOR, |
| 104 STREAM_VIDEO_CONTENT, | 110 STREAM_VIDEO_CONTENT, |
| 105 SURFACE_CONTENT, | 111 SURFACE_CONTENT, |
| 106 TEXTURE_CONTENT, | 112 TEXTURE_CONTENT, |
| 107 TILED_CONTENT, | 113 TILED_CONTENT, |
| 108 YUV_VIDEO_CONTENT, | 114 YUV_VIDEO_CONTENT, |
| 115 Y_VIDEO_CONTENT, |
| 109 }; | 116 }; |
| 110 | 117 |
| 111 struct DrawQuad { | 118 struct DrawQuad { |
| 112 Material material; | 119 Material material; |
| 113 | 120 |
| 114 // This rect, after applying the quad_transform(), gives the geometry that | 121 // This rect, after applying the quad_transform(), gives the geometry that |
| 115 // this quad should draw to. This rect lives in content space. | 122 // this quad should draw to. This rect lives in content space. |
| 116 gfx.mojom.Rect rect; | 123 gfx.mojom.Rect rect; |
| 117 | 124 |
| 118 // This specifies the region of the quad that is opaque. This rect lives in | 125 // This specifies the region of the quad that is opaque. This rect lives in |
| (...skipping 18 matching lines...) Expand all Loading... |
| 137 | 144 |
| 138 // Only one of the following will be set, depending on the material. | 145 // Only one of the following will be set, depending on the material. |
| 139 DebugBorderQuadState? debug_border_quad_state; | 146 DebugBorderQuadState? debug_border_quad_state; |
| 140 RenderPassQuadState? render_pass_quad_state; | 147 RenderPassQuadState? render_pass_quad_state; |
| 141 SolidColorQuadState? solid_color_quad_state; | 148 SolidColorQuadState? solid_color_quad_state; |
| 142 SurfaceQuadState? surface_quad_state; | 149 SurfaceQuadState? surface_quad_state; |
| 143 TextureQuadState? texture_quad_state; | 150 TextureQuadState? texture_quad_state; |
| 144 TileQuadState? tile_quad_state; | 151 TileQuadState? tile_quad_state; |
| 145 StreamVideoQuadState? stream_video_quad_state; | 152 StreamVideoQuadState? stream_video_quad_state; |
| 146 YUVVideoQuadState? yuv_video_quad_state; | 153 YUVVideoQuadState? yuv_video_quad_state; |
| 154 YVideoQuadState? y_video_quad_state; |
| 147 }; | 155 }; |
| 148 | 156 |
| 149 struct QuadList { | 157 struct QuadList { |
| 150 array<Material> quad_types; | 158 array<Material> quad_types; |
| 151 array<DrawQuad> quads; | 159 array<DrawQuad> quads; |
| 152 }; | 160 }; |
| 153 | 161 |
| OLD | NEW |