Chromium Code Reviews| Index: content/common/gpu/media/gpu_video_decode_accelerator.cc |
| diff --git a/content/common/gpu/media/gpu_video_decode_accelerator.cc b/content/common/gpu/media/gpu_video_decode_accelerator.cc |
| index 855041b44afd027ea000733d488d8d612845464e..49fa3ddeea1d4b8d08dd69c85094782fb204b642 100644 |
| --- a/content/common/gpu/media/gpu_video_decode_accelerator.cc |
| +++ b/content/common/gpu/media/gpu_video_decode_accelerator.cc |
| @@ -92,10 +92,13 @@ void GpuVideoDecodeAccelerator::NotifyError( |
| } |
| } |
| -void GpuVideoDecodeAccelerator::Initialize(const std::vector<uint32>& configs) { |
| +void GpuVideoDecodeAccelerator::Initialize( |
| + const std::vector<uint32>& configs, |
| + IPC::Message* init_done_msg) { |
| DCHECK(!video_decode_accelerator_.get()); |
| #if defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) |
| DCHECK(stub_ && stub_->scheduler()); |
|
piman
2011/07/28 23:40:59
Add a DCHECK(!init_done_msg_) ? Also, you wanna in
Ami GONE FROM CHROMIUM
2011/07/29 05:58:48
Done & done.
|
| + init_done_msg_ = init_done_msg; |
| OmxVideoDecodeAccelerator* omx_decoder = new OmxVideoDecodeAccelerator(this); |
| omx_decoder->SetEglState( |
| gfx::GLSurfaceEGL::GetHardwareDisplay(), |
| @@ -167,8 +170,9 @@ void GpuVideoDecodeAccelerator::NotifyEndOfBitstreamBuffer( |
| } |
| void GpuVideoDecodeAccelerator::NotifyInitializeDone() { |
| - if (!Send(new AcceleratedVideoDecoderHostMsg_InitializeDone(host_route_id_))) |
| - LOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_InitializeDone) failed"; |
| + if (!Send(init_done_msg_)) |
| + LOG(ERROR) << "Send(init_done_msg_) failed"; |
| + init_done_msg_ = NULL; |
| } |
| void GpuVideoDecodeAccelerator::NotifyFlushDone() { |