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

Side by Side Diff: mojo/shell/desktop/mojo_main.cc

Issue 48323005: Add a basic NativeViewportX11 for Mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make GL work Created 7 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 | Annotate | Revision Log
« no previous file with comments | « mojo/services/native_viewport/native_viewport_x11.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "mojo/shell/run.h" 9 #include "mojo/shell/run.h"
10 #include "ui/gl/gl_surface.h"
10 11
11 int main(int argc, char** argv) { 12 int main(int argc, char** argv) {
12 base::AtExitManager at_exit; 13 base::AtExitManager at_exit;
13 CommandLine::Init(argc, argv); 14 CommandLine::Init(argc, argv);
14 15
16 gfx::GLSurface::InitializeOneOff();
17
15 base::MessageLoop message_loop(base::MessageLoop::TYPE_UI); 18 base::MessageLoop message_loop(base::MessageLoop::TYPE_UI);
16 mojo::shell::Context context; 19 mojo::shell::Context context;
17 20
18 message_loop.PostTask(FROM_HERE, base::Bind(mojo::shell::Run, 21 message_loop.PostTask(FROM_HERE, base::Bind(mojo::shell::Run,
19 &context)); 22 &context));
20 message_loop.Run(); 23 message_loop.Run();
21 24
22 return 0; 25 return 0;
23 } 26 }
OLDNEW
« no previous file with comments | « mojo/services/native_viewport/native_viewport_x11.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698