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

Unified Diff: content/renderer/gpu/gpu_video_decode_accelerator_host.h

Issue 7659001: Support multiple HW video decoders per context. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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
« no previous file with comments | « content/renderer/gpu/gpu_channel_host.cc ('k') | content/renderer/gpu/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/gpu_video_decode_accelerator_host.h
diff --git a/content/renderer/gpu/gpu_video_decode_accelerator_host.h b/content/renderer/gpu/gpu_video_decode_accelerator_host.h
index b9a2181236b7652d0550df99cc7242f3bfb055e7..70f7a503374dfa04e58142fe2d1847f1877a3a8b 100644
--- a/content/renderer/gpu/gpu_video_decode_accelerator_host.h
+++ b/content/renderer/gpu/gpu_video_decode_accelerator_host.h
@@ -11,6 +11,8 @@
#include "ipc/ipc_channel.h"
#include "media/video/video_decode_accelerator.h"
+class GpuChannelHost;
+
// This class is used to talk to VideoDecodeAccelerator in the Gpu process
// through IPC messages.
class GpuVideoDecodeAcceleratorHost
@@ -18,10 +20,9 @@ class GpuVideoDecodeAcceleratorHost
public media::VideoDecodeAccelerator,
public base::NonThreadSafe {
public:
- // |router| is used to dispatch IPC messages to this object.
- // |ipc_sender| is used to send IPC messages to Gpu process.
- GpuVideoDecodeAcceleratorHost(IPC::Message::Sender* ipc_sender,
- int32 command_buffer_route_id,
+ // |channel| is used to send IPC messages to GPU process.
+ GpuVideoDecodeAcceleratorHost(GpuChannelHost* channel,
+ int32 decoder_route_id,
media::VideoDecodeAccelerator::Client* client);
virtual ~GpuVideoDecodeAcceleratorHost();
@@ -53,14 +54,13 @@ class GpuVideoDecodeAcceleratorHost
void OnErrorNotification(uint32 error);
// Sends IPC messages to the Gpu process.
- IPC::Message::Sender* ipc_sender_;
+ GpuChannelHost* channel_;
- // Route ID for the command buffer associated with the context the GPU Video
- // Decoder uses.
+ // Route ID for the associated decoder in the GPU process.
// TODO(fischman): storing route_id's for GPU process entities in the renderer
// process is vulnerable to GPU process crashing & being respawned, and
// attempting to use an outdated or reused route id.
- int32 command_buffer_route_id_;
+ int32 decoder_route_id_;
// Reference to the client that will receive callbacks from the decoder.
media::VideoDecodeAccelerator::Client* client_;
« no previous file with comments | « content/renderer/gpu/gpu_channel_host.cc ('k') | content/renderer/gpu/gpu_video_decode_accelerator_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698