| Index: ui/gfx/x/x11_connection.cc
|
| diff --git a/ui/gfx/x/x11_connection.cc b/ui/gfx/x/x11_connection.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c5ee77f40d8f048cb912a074f71c13da00377268
|
| --- /dev/null
|
| +++ b/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
|
|
|