| 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"; |
| 11 import "ui/gfx/geometry/mojo/geometry.mojom"; | 11 import "ui/gfx/geometry/mojo/geometry.mojom"; |
| 12 import "ui/gfx/mojo/transform.mojom"; | 12 import "ui/gfx/mojo/transform.mojom"; |
| 13 | 13 |
| 14 struct Color { | 14 struct Color { |
| 15 uint32 rgba; | 15 uint32 rgba; |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 struct CheckerboardQuadState { | |
| 19 // Checkerboard color. | |
| 20 Color color; | |
| 21 | |
| 22 // The scale factor of checkers. Chromium uses device scale factor for | |
| 23 // it. | |
| 24 float scale; | |
| 25 }; | |
| 26 | |
| 27 struct DebugBorderQuadState { | 18 struct DebugBorderQuadState { |
| 28 // Debug border color. | 19 // Debug border color. |
| 29 Color color; | 20 Color color; |
| 30 | 21 |
| 31 // Debug border width. | 22 // Debug border width. |
| 32 int32 width; | 23 int32 width; |
| 33 }; | 24 }; |
| 34 | 25 |
| 35 // TODO(jamesr): Populate subtype fields. | 26 // TODO(jamesr): Populate subtype fields. |
| 36 struct IoSurfaceContentQuadState {}; | 27 struct IoSurfaceContentQuadState {}; |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 128 |
| 138 // Allows changing the rect that gets drawn to make it smaller. This value | 129 // Allows changing the rect that gets drawn to make it smaller. This value |
| 139 // should be clipped to |rect|. This rect lives in content space. | 130 // should be clipped to |rect|. This rect lives in content space. |
| 140 bool needs_blending; | 131 bool needs_blending; |
| 141 | 132 |
| 142 // Index into the containing pass' shared quad state array which has state | 133 // Index into the containing pass' shared quad state array which has state |
| 143 // (transforms etc) shared by multiple quads. | 134 // (transforms etc) shared by multiple quads. |
| 144 uint32 shared_quad_state_index; | 135 uint32 shared_quad_state_index; |
| 145 | 136 |
| 146 // Only one of the following will be set, depending on the material. | 137 // Only one of the following will be set, depending on the material. |
| 147 CheckerboardQuadState? checkerboard_quad_state; | |
| 148 DebugBorderQuadState? debug_border_quad_state; | 138 DebugBorderQuadState? debug_border_quad_state; |
| 149 IoSurfaceContentQuadState? io_surface_quad_state; | 139 IoSurfaceContentQuadState? io_surface_quad_state; |
| 150 RenderPassQuadState? render_pass_quad_state; | 140 RenderPassQuadState? render_pass_quad_state; |
| 151 SolidColorQuadState? solid_color_quad_state; | 141 SolidColorQuadState? solid_color_quad_state; |
| 152 SurfaceQuadState? surface_quad_state; | 142 SurfaceQuadState? surface_quad_state; |
| 153 TextureQuadState? texture_quad_state; | 143 TextureQuadState? texture_quad_state; |
| 154 TileQuadState? tile_quad_state; | 144 TileQuadState? tile_quad_state; |
| 155 StreamVideoQuadState? stream_video_quad_state; | 145 StreamVideoQuadState? stream_video_quad_state; |
| 156 YUVVideoQuadState? yuv_video_quad_state; | 146 YUVVideoQuadState? yuv_video_quad_state; |
| 157 }; | 147 }; |
| 158 | 148 |
| 159 struct RenderPass { | 149 struct RenderPass { |
| 160 cc.mojom.RenderPassId id; | 150 cc.mojom.RenderPassId id; |
| 161 gfx.mojom.Rect output_rect; | 151 gfx.mojom.Rect output_rect; |
| 162 gfx.mojom.Rect damage_rect; | 152 gfx.mojom.Rect damage_rect; |
| 163 gfx.mojom.Transform transform_to_root_target; | 153 gfx.mojom.Transform transform_to_root_target; |
| 164 bool has_transparent_background; | 154 bool has_transparent_background; |
| 165 array<DrawQuad> quads; | 155 array<DrawQuad> quads; |
| 166 array<cc.mojom.SharedQuadState> shared_quad_states; | 156 array<cc.mojom.SharedQuadState> shared_quad_states; |
| 167 }; | 157 }; |
| OLD | NEW |