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 #include "mojo/converters/surfaces/surfaces_utils.h" | 5 #include "mojo/converters/surfaces/surfaces_utils.h" |
6 | 6 |
7 #include "mojo/converters/geometry/geometry_type_converters.h" | |
8 #include "mojo/converters/transform/transform_type_converters.h" | 7 #include "mojo/converters/transform/transform_type_converters.h" |
| 8 #include "ui/gfx/geometry/mojo/geometry_type_converters.h" |
9 #include "ui/gfx/geometry/rect.h" | 9 #include "ui/gfx/geometry/rect.h" |
10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
11 #include "ui/gfx/transform.h" | 11 #include "ui/gfx/transform.h" |
12 | 12 |
13 using mus::mojom::Pass; | 13 using mus::mojom::Pass; |
14 using mus::mojom::PassPtr; | 14 using mus::mojom::PassPtr; |
15 using mus::mojom::RenderPassId; | 15 using mus::mojom::RenderPassId; |
16 using mus::mojom::SharedQuadState; | 16 using mus::mojom::SharedQuadState; |
17 using mus::mojom::SharedQuadStatePtr; | 17 using mus::mojom::SharedQuadStatePtr; |
18 | 18 |
(...skipping 19 matching lines...) Expand all Loading... |
38 render_pass_id.index = id; | 38 render_pass_id.index = id; |
39 pass->id = render_pass_id.Clone(); | 39 pass->id = render_pass_id.Clone(); |
40 pass->output_rect = Rect::From(rect); | 40 pass->output_rect = Rect::From(rect); |
41 pass->damage_rect = Rect::From(rect); | 41 pass->damage_rect = Rect::From(rect); |
42 pass->transform_to_root_target = Transform::From(gfx::Transform()); | 42 pass->transform_to_root_target = Transform::From(gfx::Transform()); |
43 pass->has_transparent_background = false; | 43 pass->has_transparent_background = false; |
44 return pass; | 44 return pass; |
45 } | 45 } |
46 | 46 |
47 } // namespace mojo | 47 } // namespace mojo |
OLD | NEW |