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 e3079643046973eeeda04b85014b6ff0f57f4a76..92dec65a013341eacdd099db9f58b50bea4b3d26 100644 |
--- a/content/browser/gpu/gpu_process_host.cc |
+++ b/content/browser/gpu/gpu_process_host.cc |
@@ -316,7 +316,6 @@ bool GpuProcessHost::OnMessageReceived(const IPC::Message& message) { |
DCHECK(CalledOnValidThread()); |
IPC_BEGIN_MESSAGE_MAP(GpuProcessHost, message) |
IPC_MESSAGE_HANDLER(GpuHostMsg_ChannelEstablished, OnChannelEstablished) |
- IPC_MESSAGE_HANDLER(GpuHostMsg_SynchronizeReply, OnSynchronizeReply) |
IPC_MESSAGE_HANDLER(GpuHostMsg_CommandBufferCreated, OnCommandBufferCreated) |
IPC_MESSAGE_HANDLER(GpuHostMsg_DestroyCommandBuffer, OnDestroyCommandBuffer) |
IPC_MESSAGE_HANDLER(GpuHostMsg_GraphicsInfoCollected, |
@@ -358,17 +357,6 @@ void GpuProcessHost::EstablishGpuChannel( |
} |
} |
-void GpuProcessHost::Synchronize(SynchronizeCallback* callback) { |
- DCHECK(CalledOnValidThread()); |
- linked_ptr<SynchronizeCallback> wrapped_callback(callback); |
- |
- if (Send(new GpuMsg_Synchronize())) { |
- synchronize_requests_.push(wrapped_callback); |
- } else { |
- SynchronizeError(wrapped_callback.release()); |
- } |
-} |
- |
void GpuProcessHost::CreateViewCommandBuffer( |
gfx::PluginWindowHandle compositing_surface, |
int32 render_view_id, |
@@ -435,15 +423,6 @@ void GpuProcessHost::OnChannelEstablished( |
channel_handle, gpu_process_, GpuDataManager::GetInstance()->gpu_info()); |
} |
-void GpuProcessHost::OnSynchronizeReply() { |
- // Guard against race conditions in abrupt GPU process termination. |
- if (!synchronize_requests_.empty()) { |
- linked_ptr<SynchronizeCallback> callback(synchronize_requests_.front()); |
- synchronize_requests_.pop(); |
- callback->Run(); |
- } |
-} |
- |
void GpuProcessHost::OnCommandBufferCreated(const int32 route_id) { |
if (!create_command_buffer_requests_.empty()) { |
linked_ptr<CreateCommandBufferCallback> callback = |
@@ -592,13 +571,6 @@ void GpuProcessHost::SendOutstandingReplies() { |
base::kNullProcessHandle, |
GPUInfo()); |
} |
- |
- // Now unblock all renderers waiting for synchronization replies. |
- while (!synchronize_requests_.empty()) { |
- linked_ptr<SynchronizeCallback> callback = synchronize_requests_.front(); |
- synchronize_requests_.pop(); |
- SynchronizeError(callback.release()); |
- } |
} |
void GpuProcessHost::EstablishChannelError( |
@@ -616,8 +588,3 @@ void GpuProcessHost::CreateCommandBufferError( |
wrapped_callback(callback); |
callback->Run(route_id); |
} |
- |
-void GpuProcessHost::SynchronizeError(SynchronizeCallback* callback) { |
- scoped_ptr<SynchronizeCallback> wrapped_callback(callback); |
- wrapped_callback->Run(); |
-} |