Chromium Code Reviews| Index: cc/ipc/quads.mojom |
| diff --git a/cc/ipc/quads.mojom b/cc/ipc/quads.mojom |
| index 412ec8fa76892ce6454f2ff068bfbdd10e78ee30..439b29786f8e1f95289415be4e83a12e5f83c381 100644 |
| --- a/cc/ipc/quads.mojom |
| +++ b/cc/ipc/quads.mojom |
| @@ -11,27 +11,20 @@ import "cc/ipc/surface_id.mojom"; |
| import "ui/gfx/geometry/mojo/geometry.mojom"; |
| import "ui/gfx/mojo/transform.mojom"; |
| -struct Color { |
| - uint32 rgba; |
| -}; |
| - |
| struct DebugBorderQuadState { |
| // Debug border color. |
| - Color color; |
| + uint32 color; |
| // Debug border width. |
| int32 width; |
| }; |
| -// TODO(jamesr): Populate subtype fields. |
| -struct IoSurfaceContentQuadState {}; |
| - |
| struct RenderPassQuadState { |
| cc.mojom.RenderPassId render_pass_id; |
| // If nonzero, resource id of mask to use when drawing this pass. |
| uint32 mask_resource_id; |
| - gfx.mojom.PointF mask_uv_scale; |
| + gfx.mojom.Vector2dF mask_uv_scale; |
| gfx.mojom.Size mask_texture_size; |
| // Post-processing filters, applied to the pixels in the render pass' texture. |
| @@ -41,7 +34,7 @@ struct RenderPassQuadState { |
| // the render pass physical pixels. This scale is applied to the filter |
| // parameters for pixel-moving filters. This scale should include |
| // content-to-target-space scale, and device pixel ratio. |
| - gfx.mojom.PointF filters_scale; |
| + gfx.mojom.Vector2dF filters_scale; |
| // Post-processing filters, applied to the pixels showing through the |
| // background of the render pass, from behind it. |
| @@ -49,7 +42,7 @@ struct RenderPassQuadState { |
| }; |
| struct SolidColorQuadState { |
| - Color color; |
| + uint32 color; |
| bool force_anti_aliasing_off; |
| }; |
| @@ -62,7 +55,7 @@ struct TextureQuadState { |
| bool premultiplied_alpha; |
| gfx.mojom.PointF uv_top_left; |
| gfx.mojom.PointF uv_bottom_right; |
| - Color background_color; |
| + uint32 background_color; |
| array<float, 4> vertex_opacity; |
| bool y_flipped; |
| bool nearest_neighbor; |
| @@ -109,6 +102,7 @@ enum Material { |
| TEXTURE_CONTENT, |
| TILED_CONTENT, |
| YUV_VIDEO_CONTENT, |
| + MATERIAL_LAST = YUV_VIDEO_CONTENT, |
|
dcheng
2016/06/15 12:27:19
mojom shouldn't need to define a _LAST enum value,
Fady Samuel
2016/06/15 14:46:25
Done.
|
| }; |
| struct DrawQuad { |
| @@ -136,7 +130,6 @@ struct DrawQuad { |
| // Only one of the following will be set, depending on the material. |
| DebugBorderQuadState? debug_border_quad_state; |
| - IoSurfaceContentQuadState? io_surface_quad_state; |
| RenderPassQuadState? render_pass_quad_state; |
| SolidColorQuadState? solid_color_quad_state; |
| SurfaceQuadState? surface_quad_state; |
| @@ -146,6 +139,11 @@ struct DrawQuad { |
| YUVVideoQuadState? yuv_video_quad_state; |
| }; |
| +struct QuadList { |
| + array<Material> quad_types; |
| + array<DrawQuad> quads; |
| +}; |
| + |
| struct RenderPass { |
| cc.mojom.RenderPassId id; |
| gfx.mojom.Rect output_rect; |