| 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/shared_quad_state.mojom"; | 8 import "cc/ipc/shared_quad_state.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 uint32 color; | 42 uint32 color; |
| 43 bool force_anti_aliasing_off; | 43 bool force_anti_aliasing_off; |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 struct StreamVideoQuadState { | 46 struct StreamVideoQuadState { |
| 47 uint32 resource_id; | 47 uint32 resource_id; |
| 48 gfx.mojom.Size resource_size_in_pixels; | 48 gfx.mojom.Size resource_size_in_pixels; |
| 49 gfx.mojom.Transform matrix; | 49 gfx.mojom.Transform matrix; |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 enum SurfaceDrawQuadType { |
| 53 PRIMARY, |
| 54 FALLBACK, |
| 55 }; |
| 56 |
| 52 struct SurfaceQuadState { | 57 struct SurfaceQuadState { |
| 53 cc.mojom.SurfaceId surface; | 58 SurfaceId surface; |
| 59 SurfaceDrawQuadType surface_draw_quad_type; |
| 54 }; | 60 }; |
| 55 | 61 |
| 56 struct TextureQuadState { | 62 struct TextureQuadState { |
| 57 uint32 resource_id; | 63 uint32 resource_id; |
| 58 gfx.mojom.Size resource_size_in_pixels; | 64 gfx.mojom.Size resource_size_in_pixels; |
| 59 bool premultiplied_alpha; | 65 bool premultiplied_alpha; |
| 60 gfx.mojom.PointF uv_top_left; | 66 gfx.mojom.PointF uv_top_left; |
| 61 gfx.mojom.PointF uv_bottom_right; | 67 gfx.mojom.PointF uv_bottom_right; |
| 62 uint32 background_color; | 68 uint32 background_color; |
| 63 array<float, 4> vertex_opacity; | 69 array<float, 4> vertex_opacity; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // Allows changing the rect that gets drawn to make it smaller. This value | 128 // Allows changing the rect that gets drawn to make it smaller. This value |
| 123 // should be clipped to |rect|. This rect lives in content space. | 129 // should be clipped to |rect|. This rect lives in content space. |
| 124 bool needs_blending; | 130 bool needs_blending; |
| 125 | 131 |
| 126 // Optionally holds a SharedQuadState (transforms etc) shared by multiple | 132 // Optionally holds a SharedQuadState (transforms etc) shared by multiple |
| 127 // quads. | 133 // quads. |
| 128 SharedQuadState? sqs; | 134 SharedQuadState? sqs; |
| 129 | 135 |
| 130 DrawQuadState draw_quad_state; | 136 DrawQuadState draw_quad_state; |
| 131 }; | 137 }; |
| OLD | NEW |