OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/ui/ws/window_tree_host_factory.h" | 5 #include "services/ui/ws/window_tree_host_factory.h" |
6 | 6 |
7 #include "services/ui/gles2/gpu_state.h" | |
8 #include "services/ui/surfaces/surfaces_state.h" | 7 #include "services/ui/surfaces/surfaces_state.h" |
9 #include "services/ui/ws/display.h" | 8 #include "services/ui/ws/display.h" |
10 #include "services/ui/ws/display_binding.h" | 9 #include "services/ui/ws/display_binding.h" |
11 #include "services/ui/ws/window_server.h" | 10 #include "services/ui/ws/window_server.h" |
12 | 11 |
13 namespace ui { | 12 namespace ui { |
14 namespace ws { | 13 namespace ws { |
15 | 14 |
16 WindowTreeHostFactory::WindowTreeHostFactory( | 15 WindowTreeHostFactory::WindowTreeHostFactory( |
17 WindowServer* window_server, | 16 WindowServer* window_server, |
(...skipping 15 matching lines...) Expand all Loading... |
33 mojom::WindowTreeClientPtr tree_client) { | 32 mojom::WindowTreeClientPtr tree_client) { |
34 Display* display = new Display(window_server_, platform_display_init_params_); | 33 Display* display = new Display(window_server_, platform_display_init_params_); |
35 std::unique_ptr<DisplayBindingImpl> display_binding( | 34 std::unique_ptr<DisplayBindingImpl> display_binding( |
36 new DisplayBindingImpl(std::move(host), display, user_id_, | 35 new DisplayBindingImpl(std::move(host), display, user_id_, |
37 std::move(tree_client), window_server_)); | 36 std::move(tree_client), window_server_)); |
38 display->Init(std::move(display_binding)); | 37 display->Init(std::move(display_binding)); |
39 } | 38 } |
40 | 39 |
41 } // namespace ws | 40 } // namespace ws |
42 } // namespace ui | 41 } // namespace ui |
OLD | NEW |