Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(845)

Unified Diff: content/renderer/gpu/gpu_channel_host.cc

Issue 7260008: Implement proper synchronization between HW video decode IPC and CommandBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/gpu/gpu_channel_host.cc
diff --git a/content/renderer/gpu/gpu_channel_host.cc b/content/renderer/gpu/gpu_channel_host.cc
index eeb7d62225acfbcec45331e560c32a8931ded693..7bbae7213e7ee857b76a1c3edcf103ccf1cd2f9b 100644
--- a/content/renderer/gpu/gpu_channel_host.cc
+++ b/content/renderer/gpu/gpu_channel_host.cc
@@ -60,14 +60,14 @@ bool GpuChannelHost::OnMessageReceived(const IPC::Message& message) {
// This is expected, for example an asynchronous SwapBuffers notification
// to a command buffer proxy that has since been destroyed. This function
// fails silently in that case.
+ if (gpu_video_service_host_->OnMessageReceived(message))
+ return true;
return router_.RouteMessage(message);
}
void GpuChannelHost::OnChannelConnected(int32 peer_pid) {
- // When the channel is connected we create a GpuVideoServiceHost and add it
- // as a message filter.
- channel_->AddFilter(gpu_video_service_host_.get());
channel_->AddFilter(transport_texture_service_.get());
+ gpu_video_service_host_->set_channel(channel_.get());
}
void GpuChannelHost::OnChannelError() {

Powered by Google App Engine
This is Rietveld 408576698