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

Unified Diff: trunk/src/ui/views/examples/examples_main.cc

Issue 238093002: Revert 263726 "x11: Remove X11 message-pump." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/ui/gl/gl_surface_x11.cc ('k') | trunk/src/ui/views/test/ui_controls_factory_desktop_aurax11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/ui/views/examples/examples_main.cc
===================================================================
--- trunk/src/ui/views/examples/examples_main.cc (revision 263732)
+++ trunk/src/ui/views/examples/examples_main.cc (working copy)
@@ -2,6 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#if defined(USE_X11)
+#include <X11/Xlib.h>
+#endif
+
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
@@ -23,15 +27,10 @@
#if !defined(OS_CHROMEOS)
#include "ui/views/widget/desktop_aura/desktop_screen.h"
#endif
-
#if defined(OS_WIN)
#include "ui/base/win/scoped_ole_initializer.h"
#endif
-#if defined(USE_X11)
-#include "ui/gfx/x/x11_connection.h"
-#endif
-
int main(int argc, char** argv) {
#if defined(OS_WIN)
ui::ScopedOleInitializer ole_initializer_;
@@ -44,7 +43,7 @@
#if defined(USE_X11)
// This demo uses InProcessContextFactory which uses X on a separate Gpu
// thread.
- gfx::InitializeThreadedX11();
+ XInitThreads();
#endif
gfx::GLSurface::InitializeOneOff();
« no previous file with comments | « trunk/src/ui/gl/gl_surface_x11.cc ('k') | trunk/src/ui/views/test/ui_controls_factory_desktop_aurax11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698