Index: content/common/gpu/gpu_channel_manager.cc |
=================================================================== |
--- content/common/gpu/gpu_channel_manager.cc (revision 108480) |
+++ content/common/gpu/gpu_channel_manager.cc (working copy) |
@@ -61,9 +61,6 @@ |
IPC_MESSAGE_HANDLER(GpuMsg_CreateViewCommandBuffer, |
OnCreateViewCommandBuffer) |
IPC_MESSAGE_HANDLER(GpuMsg_VisibilityChanged, OnVisibilityChanged) |
-#if defined(TOOLKIT_USES_GTK) && !defined(TOUCH_UI) || defined(OS_WIN) |
- IPC_MESSAGE_HANDLER(GpuMsg_ResizeViewACK, OnResizeViewACK); |
-#endif |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP_EX() |
return handled; |
@@ -126,6 +123,7 @@ |
int32 render_view_id, |
int32 renderer_id, |
const GPUCreateCommandBufferConfig& init_params) { |
+ DCHECK(render_view_id); |
int32 route_id = MSG_ROUTING_NONE; |
GpuChannelMap::const_iterator iter = gpu_channels_.find(renderer_id); |
@@ -137,16 +135,6 @@ |
Send(new GpuHostMsg_CommandBufferCreated(route_id)); |
} |
-void GpuChannelManager::OnResizeViewACK(int32 renderer_id, |
- int32 command_buffer_route_id) { |
- GpuChannelMap::const_iterator iter = gpu_channels_.find(renderer_id); |
- if (iter == gpu_channels_.end()) |
- return; |
- scoped_refptr<GpuChannel> channel = iter->second; |
- |
- channel->ViewResized(command_buffer_route_id); |
-} |
- |
void GpuChannelManager::LoseAllContexts() { |
MessageLoop::current()->PostTask( |
FROM_HERE, method_factory_.NewRunnableMethod( |