summaryrefslogtreecommitdiffstats
path: root/content/common/gpu/gpu_channel_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/common/gpu/gpu_channel_manager.cc')
-rw-r--r--content/common/gpu/gpu_channel_manager.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc
index 900e6eb..5d3aba8 100644
--- a/content/common/gpu/gpu_channel_manager.cc
+++ b/content/common/gpu/gpu_channel_manager.cc
@@ -102,9 +102,9 @@ void GpuChannelManager::OnEstablishChannel(int renderer_id) {
#if defined(OS_POSIX)
// On POSIX, pass the renderer-side FD. Also mark it as auto-close so
// that it gets closed after it has been sent.
- int renderer_fd = channel->GetRendererFileDescriptor();
+ int renderer_fd = channel->TakeRendererFileDescriptor();
DCHECK_NE(-1, renderer_fd);
- channel_handle.socket = base::FileDescriptor(dup(renderer_fd), true);
+ channel_handle.socket = base::FileDescriptor(renderer_fd, true);
#endif
}