summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/gpu_channel_host.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 21:47:58 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 21:47:58 +0000
commit885ff1dfd127346d8fd1bfa239c7375773aabe48 (patch)
tree6004858fef22e08c5c1b4570231e01e1f0290a43 /chrome/renderer/gpu_channel_host.cc
parent3bb08606c22e357896714764731a7af21e04377d (diff)
downloadchromium_src-885ff1dfd127346d8fd1bfa239c7375773aabe48.zip
chromium_src-885ff1dfd127346d8fd1bfa239c7375773aabe48.tar.gz
chromium_src-885ff1dfd127346d8fd1bfa239c7375773aabe48.tar.bz2
GpuVideoDecoderHost runs on IO thread instead of Render thread
Move GpuVideoDecoderHost to IO thread and change GpuVideoServiceHost to be a MessageFilter. BUG=53714 TEST=Tree is green. Will pending on WebKit changes to make this work. Review URL: http://codereview.chromium.org/3462015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61854 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/gpu_channel_host.cc')
-rw-r--r--chrome/renderer/gpu_channel_host.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/renderer/gpu_channel_host.cc b/chrome/renderer/gpu_channel_host.cc
index 0b576b8..de89774 100644
--- a/chrome/renderer/gpu_channel_host.cc
+++ b/chrome/renderer/gpu_channel_host.cc
@@ -47,9 +47,10 @@ void GpuChannelHost::OnMessageReceived(const IPC::Message& message) {
}
void GpuChannelHost::OnChannelConnected(int32 peer_pid) {
- GpuVideoServiceHost::get()->OnGpuChannelConnected(this,
- &router_,
- channel_.get());
+ // When the channel is connected we create a GpuVideoServiceHost and add it
+ // as a message filter.
+ gpu_video_service_host_.reset(new GpuVideoServiceHost());
+ channel_->AddFilter(gpu_video_service_host_.get());
}
void GpuChannelHost::OnChannelError() {