Index: content/browser/gpu/gpu_process_host.cc |
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc |
index 6a14017c05eec975aa7a563b24a62de1dbded6fc..423c18727fd412d6106f5580a32461ca5e11ab4d 100644 |
--- a/content/browser/gpu/gpu_process_host.cc |
+++ b/content/browser/gpu/gpu_process_host.cc |
@@ -54,6 +54,10 @@ |
#include "ui/ozone/ozone_switches.h" |
#endif |
+#if defined(USE_X11) && !defined(OS_CHROMEOS) |
+#include "ui/gfx/x/x11_switches.h" |
+#endif |
+ |
namespace content { |
bool GpuProcessHost::gpu_enabled_ = true; |
@@ -954,6 +958,9 @@ bool GpuProcessHost::LaunchGpuProcess(const std::string& channel_id) { |
#if defined(USE_OZONE) |
switches::kOzonePlatform, |
#endif |
+#if defined(USE_X11) && !defined(OS_CHROMEOS) |
+ switches::kX11Display, |
+#endif |
}; |
cmd_line->CopySwitchesFrom(browser_command_line, kSwitchNames, |
arraysize(kSwitchNames)); |