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

Side by Side Diff: mojo/services/native_viewport/main.cc

Issue 732273002: Move GpuImpl into services/gles2 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 "base/macros.h" 5 #include "base/macros.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "gpu/command_buffer/service/mailbox_manager_impl.h" 7 #include "gpu/command_buffer/service/mailbox_manager_impl.h"
8 #include "mojo/application/application_runner_chromium.h" 8 #include "mojo/application/application_runner_chromium.h"
9 #include "mojo/public/c/system/main.h" 9 #include "mojo/public/c/system/main.h"
10 #include "mojo/public/cpp/application/application_connection.h" 10 #include "mojo/public/cpp/application/application_connection.h"
11 #include "mojo/public/cpp/application/application_delegate.h" 11 #include "mojo/public/cpp/application/application_delegate.h"
12 #include "mojo/public/cpp/application/application_impl.h" 12 #include "mojo/public/cpp/application/application_impl.h"
13 #include "mojo/public/cpp/application/interface_factory_impl.h" 13 #include "mojo/public/cpp/application/interface_factory_impl.h"
14 #include "mojo/services/native_viewport/gpu_impl.h" 14 #include "mojo/services/gles2/gpu_impl.h"
15 #include "mojo/services/native_viewport/native_viewport_impl.h" 15 #include "mojo/services/native_viewport/native_viewport_impl.h"
16 #include "mojo/services/public/cpp/native_viewport/args.h" 16 #include "mojo/services/public/cpp/native_viewport/args.h"
17 #include "ui/gl/gl_share_group.h" 17 #include "ui/gl/gl_share_group.h"
18 #include "ui/gl/gl_surface.h" 18 #include "ui/gl/gl_surface.h"
19 19
20 namespace mojo { 20 namespace mojo {
21 21
22 class NativeViewportAppDelegate 22 class NativeViewportAppDelegate
23 : public ApplicationDelegate, 23 : public ApplicationDelegate,
24 public InterfaceFactory<NativeViewport>, 24 public InterfaceFactory<NativeViewport>,
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 bool is_headless_; 71 bool is_headless_;
72 DISALLOW_COPY_AND_ASSIGN(NativeViewportAppDelegate); 72 DISALLOW_COPY_AND_ASSIGN(NativeViewportAppDelegate);
73 }; 73 };
74 } 74 }
75 75
76 MojoResult MojoMain(MojoHandle shell_handle) { 76 MojoResult MojoMain(MojoHandle shell_handle) {
77 mojo::ApplicationRunnerChromium runner(new mojo::NativeViewportAppDelegate); 77 mojo::ApplicationRunnerChromium runner(new mojo::NativeViewportAppDelegate);
78 runner.set_message_loop_type(base::MessageLoop::TYPE_UI); 78 runner.set_message_loop_type(base::MessageLoop::TYPE_UI);
79 return runner.Run(shell_handle); 79 return runner.Run(shell_handle);
80 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698