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

Unified Diff: content/renderer/gpu/command_buffer_proxy.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/common/gpu/gpu_messages.h ('k') | content/renderer/gpu/command_buffer_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/command_buffer_proxy.h
diff --git a/content/renderer/gpu/command_buffer_proxy.h b/content/renderer/gpu/command_buffer_proxy.h
index 26687b9ee35f9fd0af86126a077307c20591f2c8..2a2e25bdfb07b9fd992678a96ff31d0cba24f9fb 100644
--- a/content/renderer/gpu/command_buffer_proxy.h
+++ b/content/renderer/gpu/command_buffer_proxy.h
@@ -27,6 +27,7 @@ namespace gfx {
class Size;
}
+class GpuChannelHost;
class PluginChannelHost;
class Task;
@@ -35,7 +36,7 @@ class Task;
class CommandBufferProxy : public gpu::CommandBuffer,
public IPC::Channel::Listener {
public:
- CommandBufferProxy(IPC::Channel::Sender* channel, int route_id);
+ CommandBufferProxy(GpuChannelHost* channel, int route_id);
virtual ~CommandBufferProxy();
// IPC::Channel::Listener implementation:
@@ -117,14 +118,17 @@ class CommandBufferProxy : public gpu::CommandBuffer,
typedef std::map<int32, gpu::Buffer> TransferBufferMap;
TransferBufferMap transfer_buffers_;
- // The video decoder host corresponding to the stub's video decoder in the GPU
- // process, if one exists.
- scoped_refptr<GpuVideoDecodeAcceleratorHost> video_decoder_host_;
+ // Zero or more video decoder hosts owned by this proxy, keyed by their
+ // decoder_route_id.
+ typedef std::map<int, scoped_refptr<GpuVideoDecodeAcceleratorHost> > Decoders;
+ Decoders video_decoder_hosts_;
// The last cached state received from the service.
State last_state_;
- IPC::Channel::Sender* channel_;
+ // |*this| is owned by |*channel_| and so is always outlived by it, so using a
+ // raw pointer is ok.
+ GpuChannelHost* channel_;
int route_id_;
unsigned int flush_count_;
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/renderer/gpu/command_buffer_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698