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/runner/android/native_viewport_application_loader.h" | 5 #include "mojo/runner/android/native_viewport_application_loader.h" |
6 | 6 |
7 #include "components/gles2/gpu_state.h" | 7 #include "components/gles2/gpu_state.h" |
8 #include "components/native_viewport/native_viewport_impl.h" | 8 #include "components/native_viewport/native_viewport_impl.h" |
9 #include "mojo/public/cpp/application/application_impl.h" | 9 #include "mojo/application/public/cpp/application_impl.h" |
10 | 10 |
11 namespace mojo { | 11 namespace mojo { |
12 namespace runner { | 12 namespace runner { |
13 | 13 |
14 NativeViewportApplicationLoader::NativeViewportApplicationLoader() { | 14 NativeViewportApplicationLoader::NativeViewportApplicationLoader() { |
15 } | 15 } |
16 | 16 |
17 NativeViewportApplicationLoader::~NativeViewportApplicationLoader() { | 17 NativeViewportApplicationLoader::~NativeViewportApplicationLoader() { |
18 } | 18 } |
19 | 19 |
(...skipping 21 matching lines...) Expand all Loading... |
41 | 41 |
42 void NativeViewportApplicationLoader::Create(ApplicationConnection* connection, | 42 void NativeViewportApplicationLoader::Create(ApplicationConnection* connection, |
43 InterfaceRequest<Gpu> request) { | 43 InterfaceRequest<Gpu> request) { |
44 if (!gpu_state_) | 44 if (!gpu_state_) |
45 gpu_state_ = new gles2::GpuState; | 45 gpu_state_ = new gles2::GpuState; |
46 new gles2::GpuImpl(request.Pass(), gpu_state_); | 46 new gles2::GpuImpl(request.Pass(), gpu_state_); |
47 } | 47 } |
48 | 48 |
49 } // namespace runner | 49 } // namespace runner |
50 } // namespace mojo | 50 } // namespace mojo |
OLD | NEW |