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

Unified Diff: content/common/gpu/gpu_command_buffer_stub.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_channel.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/gpu_command_buffer_stub.h
diff --git a/content/common/gpu/gpu_command_buffer_stub.h b/content/common/gpu/gpu_command_buffer_stub.h
index c50c22add401cc757db4eb1a0ffa85db25b7187d..9ea9bdb8257eeb07454f7d1aa5539e037e4104df 100644
--- a/content/common/gpu/gpu_command_buffer_stub.h
+++ b/content/common/gpu/gpu_command_buffer_stub.h
@@ -116,7 +116,7 @@ class GpuCommandBufferStub
void OnCreateVideoDecoder(const std::vector<int32>& configs,
IPC::Message* reply_message);
- void OnDestroyVideoDecoder();
+ void OnDestroyVideoDecoder(int32 decoder_route_id);
void OnSwapBuffers();
void OnCommandProcessed();
@@ -163,8 +163,9 @@ class GpuCommandBufferStub
GpuWatchdog* watchdog_;
ScopedRunnableMethodFactory<GpuCommandBufferStub> task_factory_;
- // The video decoder associated with this stub, if any.
- scoped_ptr<GpuVideoDecodeAccelerator> video_decoder_;
+ // Zero or more video decoders owned by this stub, keyed by their
+ // decoder_route_id.
+ IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
};
« no previous file with comments | « content/common/gpu/gpu_channel.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698