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

Unified Diff: content/common/gpu/media/gpu_video_service.h

Issue 7260008: Implement proper synchronization between HW video decode IPC and CommandBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixing compilation errors from bots. 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/common/gpu/media/gpu_video_service.h
diff --git a/content/common/gpu/media/gpu_video_service.h b/content/common/gpu/media/gpu_video_service.h
index e7e9950945448c77a876ebcd14ed0a0cd8973002..2700de82e3dbe759990d733f973850817a9fbe13 100644
--- a/content/common/gpu/media/gpu_video_service.h
+++ b/content/common/gpu/media/gpu_video_service.h
@@ -35,8 +35,9 @@ class GpuVideoService : public IPC::Channel::Listener {
MessageRouter* router,
int32 decoder_host_id,
int32 decoder_id,
- gpu::gles2::GLES2Decoder* command_decoder,
+ GpuCommandBufferStub* stub,
const std::vector<uint32>& configs);
+ void InitializeVideoDecoder(int32 decoder_id);
void DestroyVideoDecoder(MessageRouter* router,
int32 decoder_id);
@@ -49,12 +50,12 @@ class GpuVideoService : public IPC::Channel::Listener {
private:
struct VideoDecoderInfo {
VideoDecoderInfo(scoped_refptr<GpuVideoDecodeAccelerator> g_v_d_a,
- gpu::gles2::GLES2Decoder* g_d)
+ GpuCommandBufferStub* s)
: video_decoder(g_v_d_a),
- command_decoder(g_d) {}
+ stub(s) {}
~VideoDecoderInfo() {}
scoped_refptr<GpuVideoDecodeAccelerator> video_decoder;
- gpu::gles2::GLES2Decoder* command_decoder;
+ GpuCommandBufferStub* stub;
};
// Map of video and command buffer decoders, indexed by video decoder id.
typedef std::map<int32, VideoDecoderInfo> DecoderMap;

Powered by Google App Engine
This is Rietveld 408576698