diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-31 16:29:04 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-31 16:29:04 +0000 |
commit | 7822132061ad3d7bb671334b2afd2b80133a6415 (patch) | |
tree | 6da24c2465eaffec6673cfd68ed4b95debfce5a8 /chrome/renderer/gpu_channel_host.cc | |
parent | 2bf708f745e7f2435e2809286af0483424bd7f21 (diff) | |
download | chromium_src-7822132061ad3d7bb671334b2afd2b80133a6415.zip chromium_src-7822132061ad3d7bb671334b2afd2b80133a6415.tar.gz chromium_src-7822132061ad3d7bb671334b2afd2b80133a6415.tar.bz2 |
Refactoring to use a new IPC message filter.
There were several ViewHostMsgs being sent to the GpuProcessHost via a RenderMessageFilter. This patch creates a GpuMessageFilter and renames the ViewHostMsgs to GpuHostMsgs. This will clean up some of the clutter in render_messages_internal and render_message_filter. It will also allow us to easily add new messages to the GpuProcessHost in the future.
BUG=none
TEST=by hand and trybots
Review URL: http://codereview.chromium.org/6401003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73152 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/gpu_channel_host.cc')
-rw-r--r-- | chrome/renderer/gpu_channel_host.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/renderer/gpu_channel_host.cc b/chrome/renderer/gpu_channel_host.cc index 10b52ed..c4354e7 100644 --- a/chrome/renderer/gpu_channel_host.cc +++ b/chrome/renderer/gpu_channel_host.cc @@ -7,7 +7,6 @@ #include "chrome/common/child_process.h" #include "chrome/common/gpu_create_command_buffer_config.h" #include "chrome/common/gpu_messages.h" -#include "chrome/common/render_messages.h" #include "chrome/renderer/command_buffer_proxy.h" #include "chrome/renderer/gpu_video_service_host.h" #include "chrome/renderer/render_thread.h" @@ -102,8 +101,9 @@ CommandBufferProxy* GpuChannelHost::CreateViewCommandBuffer( GPUCreateCommandBufferConfig init_params(allowed_extensions, attribs); int32 route_id; - if (!RenderThread::current()->Send(new ViewHostMsg_CreateViewCommandBuffer( - render_view_id, init_params, &route_id))) { + if (!RenderThread::current()->Send( + new GpuHostMsg_CreateViewCommandBuffer( + render_view_id, init_params, &route_id))) { return NULL; } |