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/services/public/cpp/surfaces/surfaces_utils.h" | 5 #include "mojo/converters/surfaces_utils.h" |
6 | 6 |
7 #include "mojo/services/public/cpp/geometry/geometry_type_converters.h" | 7 #include "mojo/converters/geometry_type_converters.h" |
8 #include "ui/gfx/geometry/rect.h" | 8 #include "ui/gfx/geometry/rect.h" |
9 #include "ui/gfx/geometry/size.h" | 9 #include "ui/gfx/geometry/size.h" |
10 #include "ui/gfx/transform.h" | 10 #include "ui/gfx/transform.h" |
11 | 11 |
12 namespace mojo { | 12 namespace mojo { |
13 | 13 |
14 SharedQuadStatePtr CreateDefaultSQS(const gfx::Size& size) { | 14 SharedQuadStatePtr CreateDefaultSQS(const gfx::Size& size) { |
15 SharedQuadStatePtr sqs = SharedQuadState::New(); | 15 SharedQuadStatePtr sqs = SharedQuadState::New(); |
16 sqs->content_to_target_transform = Transform::From(gfx::Transform()); | 16 sqs->content_to_target_transform = Transform::From(gfx::Transform()); |
17 sqs->content_bounds = Size::From(size); | 17 sqs->content_bounds = Size::From(size); |
(...skipping 10 matching lines...) Expand all Loading... |
28 PassPtr pass = Pass::New(); | 28 PassPtr pass = Pass::New(); |
29 pass->id = id; | 29 pass->id = id; |
30 pass->output_rect = Rect::From(rect); | 30 pass->output_rect = Rect::From(rect); |
31 pass->damage_rect = Rect::From(rect); | 31 pass->damage_rect = Rect::From(rect); |
32 pass->transform_to_root_target = Transform::From(gfx::Transform()); | 32 pass->transform_to_root_target = Transform::From(gfx::Transform()); |
33 pass->has_transparent_background = false; | 33 pass->has_transparent_background = false; |
34 return pass.Pass(); | 34 return pass.Pass(); |
35 } | 35 } |
36 | 36 |
37 } // namespace mojo | 37 } // namespace mojo |
OLD | NEW |