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

Unified Diff: chrome/renderer/render_widget.cc

Issue 1095005: Fixed bugs in GPU process startup on POSIX platforms. Added... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 months 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
« chrome/gpu/gpu_main.cc ('K') | « chrome/gpu/gpu_main.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_widget.cc
===================================================================
--- chrome/renderer/render_widget.cc (revision 42147)
+++ chrome/renderer/render_widget.cc (working copy)
@@ -27,6 +27,7 @@
#include "webkit/glue/webkit_glue.h"
#if defined(OS_POSIX)
+#include "ipc/ipc_channel_posix.h"
#include "third_party/skia/include/core/SkPixelRef.h"
#include "third_party/skia/include/core/SkMallocPixelRef.h"
#endif // defined(OS_POSIX)
@@ -733,6 +734,12 @@
void RenderWidget::OnGpuChannelEstablished(
const IPC::ChannelHandle& channel_handle) {
+#if defined(OS_POSIX)
+ // If we received a ChannelHandle, register it now.
+ if (channel_handle.socket.fd >= 0)
+ IPC::AddChannelSocket(channel_handle.name, channel_handle.socket.fd);
+#endif
+
if (channel_handle.name.size() != 0) {
// Connect to the GPU process if a channel name was received.
gpu_channel_->Connect(channel_handle.name);
« chrome/gpu/gpu_main.cc ('K') | « chrome/gpu/gpu_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698