| 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"; |
| 11 import "ui/gfx/mojo/buffer_types.mojom"; |
| 11 import "ui/gfx/mojo/transform.mojom"; | 12 import "ui/gfx/mojo/transform.mojom"; |
| 12 | 13 |
| 13 struct DebugBorderQuadState { | 14 struct DebugBorderQuadState { |
| 14 // Debug border color. | 15 // Debug border color. |
| 15 uint32 color; | 16 uint32 color; |
| 16 | 17 |
| 17 // Debug border width. | 18 // Debug border width. |
| 18 int32 width; | 19 int32 width; |
| 19 }; | 20 }; |
| 20 | 21 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 struct SolidColorQuadState { | 45 struct SolidColorQuadState { |
| 45 uint32 color; | 46 uint32 color; |
| 46 bool force_anti_aliasing_off; | 47 bool force_anti_aliasing_off; |
| 47 }; | 48 }; |
| 48 | 49 |
| 49 struct StreamVideoQuadState { | 50 struct StreamVideoQuadState { |
| 50 uint32 resource_id; | 51 uint32 resource_id; |
| 51 gfx.mojom.Size resource_size_in_pixels; | 52 gfx.mojom.Size resource_size_in_pixels; |
| 53 gfx.mojom.BufferFormat format; |
| 52 gfx.mojom.Transform matrix; | 54 gfx.mojom.Transform matrix; |
| 53 }; | 55 }; |
| 54 | 56 |
| 55 enum SurfaceDrawQuadType { | 57 enum SurfaceDrawQuadType { |
| 56 PRIMARY, | 58 PRIMARY, |
| 57 FALLBACK, | 59 FALLBACK, |
| 58 }; | 60 }; |
| 59 | 61 |
| 60 struct SurfaceQuadState { | 62 struct SurfaceQuadState { |
| 61 SurfaceId surface; | 63 SurfaceId surface; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 // Allows changing the rect that gets drawn to make it smaller. This value | 133 // Allows changing the rect that gets drawn to make it smaller. This value |
| 132 // should be clipped to |rect|. This rect lives in content space. | 134 // should be clipped to |rect|. This rect lives in content space. |
| 133 bool needs_blending; | 135 bool needs_blending; |
| 134 | 136 |
| 135 // Optionally holds a SharedQuadState (transforms etc) shared by multiple | 137 // Optionally holds a SharedQuadState (transforms etc) shared by multiple |
| 136 // quads. | 138 // quads. |
| 137 SharedQuadState? sqs; | 139 SharedQuadState? sqs; |
| 138 | 140 |
| 139 DrawQuadState draw_quad_state; | 141 DrawQuadState draw_quad_state; |
| 140 }; | 142 }; |
| OLD | NEW |