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 "shell/android/native_viewport_application_loader.h" | 5 #include "shell/android/native_viewport_application_loader.h" |
6 | 6 |
7 #include "mojo/public/cpp/application/application_impl.h" | 7 #include "mojo/public/cpp/application/application_impl.h" |
8 #include "services/gles2/gpu_state.h" | 8 #include "services/gles2/gpu_state.h" |
9 #include "services/native_viewport/native_viewport_impl.h" | 9 #include "services/native_viewport/native_viewport_impl.h" |
10 | 10 |
11 using mojo::ApplicationConnection; | |
12 using mojo::ConnectionContext; | 11 using mojo::ConnectionContext; |
13 using mojo::InterfaceRequest; | 12 using mojo::InterfaceRequest; |
14 | 13 |
15 namespace shell { | 14 namespace shell { |
16 | 15 |
17 NativeViewportApplicationLoader::NativeViewportApplicationLoader() { | 16 NativeViewportApplicationLoader::NativeViewportApplicationLoader() { |
18 } | 17 } |
19 | 18 |
20 NativeViewportApplicationLoader::~NativeViewportApplicationLoader() { | 19 NativeViewportApplicationLoader::~NativeViewportApplicationLoader() { |
21 } | 20 } |
(...skipping 19 matching lines...) Expand all Loading... |
41 [this](const ConnectionContext& connection_context, | 40 [this](const ConnectionContext& connection_context, |
42 InterfaceRequest<mojo::Gpu> gpu_request) { | 41 InterfaceRequest<mojo::Gpu> gpu_request) { |
43 if (!gpu_state_) | 42 if (!gpu_state_) |
44 gpu_state_ = new gles2::GpuState(); | 43 gpu_state_ = new gles2::GpuState(); |
45 new gles2::GpuImpl(gpu_request.Pass(), gpu_state_); | 44 new gles2::GpuImpl(gpu_request.Pass(), gpu_state_); |
46 }); | 45 }); |
47 return true; | 46 return true; |
48 } | 47 } |
49 | 48 |
50 } // namespace shell | 49 } // namespace shell |
OLD | NEW |