| 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // Allows changing the rect that gets drawn to make it smaller. This value | 117 // Allows changing the rect that gets drawn to make it smaller. This value |
| 118 // should be clipped to |rect|. This rect lives in content space. | 118 // should be clipped to |rect|. This rect lives in content space. |
| 119 gfx.mojom.Rect visible_rect; | 119 gfx.mojom.Rect visible_rect; |
| 120 | 120 |
| 121 // Allows changing the rect that gets drawn to make it smaller. This value | 121 // Allows changing the rect that gets drawn to make it smaller. This value |
| 122 // should be clipped to |rect|. This rect lives in content space. | 122 // should be clipped to |rect|. This rect lives in content space. |
| 123 bool needs_blending; | 123 bool needs_blending; |
| 124 | 124 |
| 125 // Index into the containing pass' shared quad state array which has state | 125 // Index into the containing pass' shared quad state array which has state |
| 126 // (transforms etc) shared by multiple quads. | 126 // (transforms etc) shared by multiple quads. |
| 127 uint32 shared_quad_state_index; | 127 // TODO(fsamuel): This is not currently used because we store the |
| 128 // indicies to SharedQuadStates in a separate array. This is more expensive |
| 129 // than storing them inline here, but we need support for context propagation |
| 130 // in Mojo StructTraits in order to store the sqs index here. |
| 131 //uint32 shared_quad_state_index; |
| 128 | 132 |
| 129 // Only one of the following will be set, depending on the material. | 133 // Only one of the following will be set, depending on the material. |
| 130 DebugBorderQuadState? debug_border_quad_state; | 134 DebugBorderQuadState? debug_border_quad_state; |
| 131 RenderPassQuadState? render_pass_quad_state; | 135 RenderPassQuadState? render_pass_quad_state; |
| 132 SolidColorQuadState? solid_color_quad_state; | 136 SolidColorQuadState? solid_color_quad_state; |
| 133 SurfaceQuadState? surface_quad_state; | 137 SurfaceQuadState? surface_quad_state; |
| 134 TextureQuadState? texture_quad_state; | 138 TextureQuadState? texture_quad_state; |
| 135 TileQuadState? tile_quad_state; | 139 TileQuadState? tile_quad_state; |
| 136 StreamVideoQuadState? stream_video_quad_state; | 140 StreamVideoQuadState? stream_video_quad_state; |
| 137 YUVVideoQuadState? yuv_video_quad_state; | 141 YUVVideoQuadState? yuv_video_quad_state; |
| 138 }; | 142 }; |
| 139 | 143 |
| 140 struct QuadList { | 144 struct QuadList { |
| 141 array<Material> quad_types; | 145 array<Material> quad_types; |
| 142 array<DrawQuad> quads; | 146 array<DrawQuad> quads; |
| 143 }; | 147 }; |
| 144 | 148 |
| OLD | NEW |