diff options
author | mmocny@chromium.org <mmocny@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-06 20:38:50 +0000 |
---|---|---|
committer | mmocny@chromium.org <mmocny@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-06 20:38:50 +0000 |
commit | a407d6d79343ebcc9f7eedfaafb84bcd05e08e1a (patch) | |
tree | d58d4cb84e88ef9278c1bf1bdc954fc660496f52 /content | |
parent | cdb285583abd42c9cee96be6ed46bab945ea0abc (diff) | |
download | chromium_src-a407d6d79343ebcc9f7eedfaafb84bcd05e08e1a.zip chromium_src-a407d6d79343ebcc9f7eedfaafb84bcd05e08e1a.tar.gz chromium_src-a407d6d79343ebcc9f7eedfaafb84bcd05e08e1a.tar.bz2 |
Removing duplicate IPC and dead code: GpuMsg_VisibilityChanged
GpuMsg_VisibilityChanged was meant to one day be used for context eviction (according to a todo), but was not completed.
The GPU is already informed of visibility changes via GpuCommandBufferMsg_SetSurfaceVisible.
BUG=None
TEST=Manual
Review URL: http://codereview.chromium.org/9135001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116727 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-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, |