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

Unified Diff: content/gpu/gpu_main.cc

Issue 8890042: Share X connection between GLSurfaceGLX/EGL and MessagePumpX/GTK (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix hang in unittests Created 9 years 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 | « base/message_pump_x.cc ('k') | ui/gfx/compositor/test/test_compositor_host_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 8ecc3f72a636106572ac69f56ef1913a72a753d8..ca26cc978c86da520789e6d14eab269be5d59865 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -30,6 +30,10 @@
#include "ui/base/x/x11_util.h"
#endif
+#if defined(TOOLKIT_USES_GTK)
+#include "ui/gfx/gtk_util.h"
+#endif
+
// Main function for starting the Gpu process.
int GpuMain(const content::MainFunctionParams& parameters) {
base::Time start_time = base::Time::Now();
@@ -50,6 +54,9 @@ int GpuMain(const content::MainFunctionParams& parameters) {
#elif defined(USE_X11)
ui::SetDefaultX11ErrorHandlers();
#endif
+#if defined(TOOLKIT_USES_GTK)
+ gfx::GtkInitFromCommandLine(*CommandLine::ForCurrentProcess());
+#endif
}
// Initialization of the OpenGL bindings may fail, in which case we
« no previous file with comments | « base/message_pump_x.cc ('k') | ui/gfx/compositor/test/test_compositor_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698