summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/render_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/render_thread.cc')
-rw-r--r--chrome/renderer/render_thread.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc
index 30be754..95588c8 100644
--- a/chrome/renderer/render_thread.cc
+++ b/chrome/renderer/render_thread.cc
@@ -253,6 +253,14 @@ void RenderThread::Init() {
suicide_on_channel_error_filter_ = new SuicideOnChannelErrorFilter;
AddFilter(suicide_on_channel_error_filter_.get());
#endif
+
+ // Establish a channel to the GPU process asynchronously if requested. If the
+ // channel is established in time, EstablishGpuChannelSync will not block when
+ // it is later called.
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kPrelaunchGpuProcess)) {
+ EstablishGpuChannel();
+ }
}
RenderThread::~RenderThread() {