diff options
-rw-r--r-- | content/browser/renderer_host/render_widget_host.cc | 10 | ||||
-rw-r--r-- | content/common/gpu/gpu_channel_manager.cc | 6 | ||||
-rw-r--r-- | content/common/gpu/gpu_messages.h | 5 |
3 files changed, 0 insertions, 21 deletions
diff --git a/content/browser/renderer_host/render_widget_host.cc b/content/browser/renderer_host/render_widget_host.cc index e0f3137..7233def 100644 --- a/content/browser/renderer_host/render_widget_host.cc +++ b/content/browser/renderer_host/render_widget_host.cc @@ -265,11 +265,6 @@ void RenderWidgetHost::WasHidden() { // reduce its resource utilization. Send(new ViewMsg_WasHidden(routing_id_)); - GpuProcessHost::SendOnIO( - 0, - content::CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, - new GpuMsg_VisibilityChanged(routing_id_, process()->GetID(), false)); - // Tell the RenderProcessHost we were hidden. process_->WidgetHidden(); @@ -301,11 +296,6 @@ void RenderWidgetHost::WasRestored() { } Send(new ViewMsg_WasRestored(routing_id_, needs_repainting)); - GpuProcessHost::SendOnIO( - 0, - content::CAUSE_FOR_GPU_LAUNCH_NO_LAUNCH, - new GpuMsg_VisibilityChanged(routing_id_, process()->GetID(), true)); - process_->WidgetRestored(); bool is_visible = true; diff --git a/content/common/gpu/gpu_channel_manager.cc b/content/common/gpu/gpu_channel_manager.cc index db78af4..44c946e 100644 --- a/content/common/gpu/gpu_channel_manager.cc +++ b/content/common/gpu/gpu_channel_manager.cc @@ -61,7 +61,6 @@ bool GpuChannelManager::OnMessageReceived(const IPC::Message& msg) { IPC_MESSAGE_HANDLER(GpuMsg_CloseChannel, OnCloseChannel) IPC_MESSAGE_HANDLER(GpuMsg_CreateViewCommandBuffer, OnCreateViewCommandBuffer) - IPC_MESSAGE_HANDLER(GpuMsg_VisibilityChanged, OnVisibilityChanged) IPC_MESSAGE_UNHANDLED(handled = false) IPC_END_MESSAGE_MAP_EX() return handled; @@ -107,11 +106,6 @@ void GpuChannelManager::OnCloseChannel( } } -void GpuChannelManager::OnVisibilityChanged( - int32 render_view_id, int32 renderer_id, bool visible) { - // TODO(amarinichev): this will be used for context eviction -} - void GpuChannelManager::OnCreateViewCommandBuffer( gfx::PluginWindowHandle window, int32 render_view_id, diff --git a/content/common/gpu/gpu_messages.h b/content/common/gpu/gpu_messages.h index b8aa94f..e1bbca3 100644 --- a/content/common/gpu/gpu_messages.h +++ b/content/common/gpu/gpu_messages.h @@ -143,11 +143,6 @@ IPC_MESSAGE_CONTROL1(GpuMsg_EstablishChannel, IPC_MESSAGE_CONTROL1(GpuMsg_CloseChannel, IPC::ChannelHandle /* channel_handle */) -IPC_MESSAGE_CONTROL3(GpuMsg_VisibilityChanged, - int32, /*render_view_id */ - int32, /* renderer_id */ - bool /* is_visible */) - // Tells the GPU process to create a new command buffer that renders directly // to a native view. A corresponding GpuCommandBufferStub is created. IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, |