| Index: content/common/gpu/gpu_video_decode_accelerator.cc
|
| diff --git a/content/common/gpu/gpu_video_decode_accelerator.cc b/content/common/gpu/gpu_video_decode_accelerator.cc
|
| index 35d0a0b0ec3c325d71e36ee943dafed3f33d0e5a..e962968b4a8ee9013644b81ee3091222303bfa74 100644
|
| --- a/content/common/gpu/gpu_video_decode_accelerator.cc
|
| +++ b/content/common/gpu/gpu_video_decode_accelerator.cc
|
| @@ -117,8 +117,9 @@ void GpuVideoDecodeAccelerator::OnInitialize(
|
| void GpuVideoDecodeAccelerator::OnDecode(int32 id,
|
| base::SharedMemoryHandle handle,
|
| int32 size) {
|
| - // TODO(vrk): Implement.
|
| - NOTIMPLEMENTED();
|
| + if (!video_decode_accelerator_)
|
| + return;
|
| + video_decode_accelerator_->Decode(media::BitstreamBuffer(id, handle, size));
|
| }
|
|
|
| void GpuVideoDecodeAccelerator::OnAssignGLESBuffers(
|
| @@ -164,8 +165,12 @@ void GpuVideoDecodeAccelerator::OnAbort() {
|
|
|
| void GpuVideoDecodeAccelerator::NotifyEndOfBitstreamBuffer(
|
| int32 bitstream_buffer_id) {
|
| - // TODO(vrk): Implement.
|
| - NOTIMPLEMENTED();
|
| + if (!Send(new AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed(
|
| + route_id_, bitstream_buffer_id))) {
|
| + DLOG(ERROR)
|
| + << "Send(AcceleratedVideoDecoderHostMsg_BitstreamBufferProcessed) "
|
| + << "failed";
|
| + }
|
| }
|
|
|
| void GpuVideoDecodeAccelerator::NotifyFlushDone() {
|
|
|