Index: content/common/gpu/gpu_command_buffer_stub.cc |
diff --git a/content/common/gpu/gpu_command_buffer_stub.cc b/content/common/gpu/gpu_command_buffer_stub.cc |
index b44fa02b6f806a2f747950eb42d116078f80680b..b26757559392e78ff52656e50b5aafcf1d7b53f1 100644 |
--- a/content/common/gpu/gpu_command_buffer_stub.cc |
+++ b/content/common/gpu/gpu_command_buffer_stub.cc |
@@ -203,8 +203,6 @@ bool GpuCommandBufferStub::OnMessageReceived(const IPC::Message& message) { |
OnRegisterTransferBuffer); |
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_DestroyTransferBuffer, |
OnDestroyTransferBuffer); |
- IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuCommandBufferMsg_GetTransferBuffer, |
- OnGetTransferBuffer); |
IPC_MESSAGE_HANDLER_DELAY_REPLY(GpuCommandBufferMsg_CreateVideoDecoder, |
OnCreateVideoDecoder) |
IPC_MESSAGE_HANDLER(GpuCommandBufferMsg_SetSurfaceVisible, |
@@ -707,40 +705,6 @@ void GpuCommandBufferStub::OnDestroyTransferBuffer(int32 id) { |
command_buffer_->DestroyTransferBuffer(id); |
} |
-void GpuCommandBufferStub::OnGetTransferBuffer( |
- int32 id, |
- IPC::Message* reply_message) { |
- TRACE_EVENT0("gpu", "GpuCommandBufferStub::OnGetTransferBuffer"); |
- if (command_buffer_) { |
- base::SharedMemoryHandle transfer_buffer = base::SharedMemoryHandle(); |
- uint32 size = 0; |
- |
- scoped_refptr<gpu::Buffer> buffer = command_buffer_->GetTransferBuffer(id); |
- if (buffer && buffer->shared_memory()) { |
-#if defined(OS_WIN) |
- transfer_buffer = NULL; |
- BrokerDuplicateHandle(buffer->shared_memory()->handle(), |
- channel_->renderer_pid(), |
- &transfer_buffer, |
- FILE_MAP_READ | FILE_MAP_WRITE, |
- 0); |
- DCHECK(transfer_buffer != NULL); |
-#else |
- buffer->shared_memory()->ShareToProcess(channel_->renderer_pid(), |
- &transfer_buffer); |
-#endif |
- size = buffer->size(); |
- } |
- |
- GpuCommandBufferMsg_GetTransferBuffer::WriteReplyParams(reply_message, |
- transfer_buffer, |
- size); |
- } else { |
- reply_message->set_reply_error(); |
- } |
- Send(reply_message); |
-} |
- |
void GpuCommandBufferStub::OnCommandProcessed() { |
if (watchdog_) |
watchdog_->CheckArmed(); |