summaryrefslogtreecommitdiffstats
path: root/chromium/ui/gfx/x/x11_connection.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/ui/gfx/x/x11_connection.cc')
-rw-r--r--chromium/ui/gfx/x/x11_connection.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/chromium/ui/gfx/x/x11_connection.cc b/chromium/ui/gfx/x/x11_connection.cc
new file mode 100644
index 00000000000..c5ee77f40d8
--- /dev/null
+++ b/chromium/ui/gfx/x/x11_connection.cc
@@ -0,0 +1,17 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/gfx/x/x11_connection.h"
+
+#include <X11/Xlib.h>
+
+#include "ui/gfx/x/x11_types.h"
+
+namespace gfx {
+
+bool InitializeThreadedX11() {
+ return XInitThreads() && gfx::GetXDisplay();
+}
+
+} // namespace gfx