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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/services/native_viewport/native_viewport_x11.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/desktop/mojo_main.cc
diff --git a/mojo/shell/desktop/mojo_main.cc b/mojo/shell/desktop/mojo_main.cc
index bf1f97387d705cc481352a4d0f575d96cd14101e..991997bc153e4cefee8bef67c0e5f65e0755de84 100644
--- a/mojo/shell/desktop/mojo_main.cc
+++ b/mojo/shell/desktop/mojo_main.cc
@@ -7,11 +7,14 @@
#include "base/command_line.h"
#include "base/message_loop/message_loop.h"
#include "mojo/shell/run.h"
+#include "ui/gl/gl_surface.h"
int main(int argc, char** argv) {
base::AtExitManager at_exit;
CommandLine::Init(argc, argv);
+ gfx::GLSurface::InitializeOneOff();
+
base::MessageLoop message_loop(base::MessageLoop::TYPE_UI);
mojo::shell::Context context;
« 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