Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: shell/android/native_viewport_application_loader.cc

Issue 1983473002: ApplicationConnection devolution, part 3.1. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « services/test_service/test_time_service_impl.h ('k') | shell/application_manager/application_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698