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 mojo; | 5 module mojo; |
6 | 6 |
7 import "mojo/services/public/interfaces/geometry/geometry.mojom"; | 7 import "mojo/services/public/interfaces/geometry/geometry.mojom"; |
8 import "mojo/services/public/interfaces/surfaces/surface_id.mojom"; | 8 import "mojo/services/public/interfaces/surfaces/surface_id.mojom"; |
9 | 9 |
10 struct Color { | 10 struct Color { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 }; | 57 }; |
58 | 58 |
59 struct TextureQuadState { | 59 struct TextureQuadState { |
60 uint32 resource_id; | 60 uint32 resource_id; |
61 bool premultiplied_alpha; | 61 bool premultiplied_alpha; |
62 PointF uv_top_left; | 62 PointF uv_top_left; |
63 PointF uv_bottom_right; | 63 PointF uv_bottom_right; |
64 Color background_color; | 64 Color background_color; |
65 array<float, 4> vertex_opacity; | 65 array<float, 4> vertex_opacity; |
66 bool flipped; | 66 bool flipped; |
| 67 bool nearest_neighbor; |
67 }; | 68 }; |
68 | 69 |
69 struct TileQuadState { | 70 struct TileQuadState { |
70 RectF tex_coord_rect; | 71 RectF tex_coord_rect; |
71 Size texture_size; | 72 Size texture_size; |
72 bool swizzle_contents; | 73 bool swizzle_contents; |
73 uint32 resource_id; | 74 uint32 resource_id; |
74 }; | 75 }; |
75 | 76 |
76 struct StreamVideoQuadState {}; | 77 struct StreamVideoQuadState {}; |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 201 |
201 struct Pass { | 202 struct Pass { |
202 int32 id; | 203 int32 id; |
203 Rect output_rect; | 204 Rect output_rect; |
204 Rect damage_rect; | 205 Rect damage_rect; |
205 Transform transform_to_root_target; | 206 Transform transform_to_root_target; |
206 bool has_transparent_background; | 207 bool has_transparent_background; |
207 array<Quad> quads; | 208 array<Quad> quads; |
208 array<SharedQuadState> shared_quad_states; | 209 array<SharedQuadState> shared_quad_states; |
209 }; | 210 }; |
OLD | NEW |