OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/gfx/compositor/compositor_app.h" | 5 #include "services/gfx/compositor/compositor_app.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
10 #include "mojo/application/application_runner_chromium.h" | |
11 #include "mojo/common/tracing_impl.h" | 10 #include "mojo/common/tracing_impl.h" |
12 #include "mojo/public/c/system/main.h" | 11 #include "mojo/public/c/system/main.h" |
13 #include "mojo/public/cpp/application/application_impl.h" | |
14 #include "mojo/public/cpp/application/service_provider_impl.h" | 12 #include "mojo/public/cpp/application/service_provider_impl.h" |
15 #include "services/gfx/compositor/compositor_impl.h" | 13 #include "services/gfx/compositor/compositor_impl.h" |
16 | 14 |
17 namespace compositor { | 15 namespace compositor { |
18 | 16 |
19 CompositorApp::CompositorApp() {} | 17 CompositorApp::CompositorApp() {} |
20 | 18 |
21 CompositorApp::~CompositorApp() {} | 19 CompositorApp::~CompositorApp() {} |
22 | 20 |
23 void CompositorApp::OnInitialize() { | 21 void CompositorApp::OnInitialize() { |
(...skipping 14 matching lines...) Expand all Loading... |
38 [this](const mojo::ConnectionContext& connection_context, | 36 [this](const mojo::ConnectionContext& connection_context, |
39 mojo::InterfaceRequest<mojo::gfx::composition::Compositor> | 37 mojo::InterfaceRequest<mojo::gfx::composition::Compositor> |
40 compositor_request) { | 38 compositor_request) { |
41 compositor_bindings_.AddBinding(new CompositorImpl(engine_.get()), | 39 compositor_bindings_.AddBinding(new CompositorImpl(engine_.get()), |
42 compositor_request.Pass()); | 40 compositor_request.Pass()); |
43 }); | 41 }); |
44 return true; | 42 return true; |
45 } | 43 } |
46 | 44 |
47 } // namespace compositor | 45 } // namespace compositor |
OLD | NEW |