| Index: cc/ipc/quads.mojom
|
| diff --git a/cc/ipc/quads.mojom b/cc/ipc/quads.mojom
|
| index 412ec8fa76892ce6454f2ff068bfbdd10e78ee30..e553a54236d974e92fed02abf5db4605272cb715 100644
|
| --- a/cc/ipc/quads.mojom
|
| +++ b/cc/ipc/quads.mojom
|
| @@ -11,13 +11,9 @@ 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;
|
| @@ -49,7 +45,7 @@ struct RenderPassQuadState {
|
| };
|
|
|
| struct SolidColorQuadState {
|
| - Color color;
|
| + uint32 color;
|
| bool force_anti_aliasing_off;
|
| };
|
|
|
| @@ -62,7 +58,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 +105,7 @@ enum Material {
|
| TEXTURE_CONTENT,
|
| TILED_CONTENT,
|
| YUV_VIDEO_CONTENT,
|
| + MATERIAL_LAST = YUV_VIDEO_CONTENT,
|
| };
|
|
|
| struct DrawQuad {
|
| @@ -146,6 +143,29 @@ struct DrawQuad {
|
| YUVVideoQuadState? yuv_video_quad_state;
|
| };
|
|
|
| +struct MyDrawQuad {
|
| + Material material;
|
| + gfx.mojom.Rect rect;
|
| + gfx.mojom.Rect opaque_rect;
|
| + gfx.mojom.Rect visible_rect;
|
| + bool needs_blending;
|
| + uint32 shared_quad_state_index;
|
| + DebugBorderQuadState? debug_border_quad_state;
|
| + IoSurfaceContentQuadState? io_surface_quad_state;
|
| + RenderPassQuadState? render_pass_quad_state;
|
| + SolidColorQuadState? solid_color_quad_state;
|
| + SurfaceQuadState? surface_quad_state;
|
| + TextureQuadState? texture_quad_state;
|
| + TileQuadState? tile_quad_state;
|
| + StreamVideoQuadState? stream_video_quad_state;
|
| + YUVVideoQuadState? yuv_video_quad_state;
|
| +};
|
| +
|
| +struct QuadList {
|
| + array<Material> quad_types;
|
| + array<MyDrawQuad> quads;
|
| +};
|
| +
|
| struct RenderPass {
|
| cc.mojom.RenderPassId id;
|
| gfx.mojom.Rect output_rect;
|
|
|