summaryrefslogtreecommitdiffstats
path: root/content/common
diff options
context:
space:
mode:
authorfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-23 18:05:50 +0000
committerfischman@chromium.org <fischman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-23 18:05:50 +0000
commit05699652b60d05243cf4a3c6f2e2fb6cf88e7a8f (patch)
treec0339a313862cd6739122d330af99f04bfba132b /content/common
parentc929ead144443ca4207d28173979ce33cb754283 (diff)
downloadchromium_src-05699652b60d05243cf4a3c6f2e2fb6cf88e7a8f.zip
chromium_src-05699652b60d05243cf4a3c6f2e2fb6cf88e7a8f.tar.gz
chromium_src-05699652b60d05243cf4a3c6f2e2fb6cf88e7a8f.tar.bz2
Updated video decoder IPC to use PPB_Buffer_Dev's new support for SharedMemory.
Plumb through from renderer to GPU process' OMX decoder. BUG=none TEST=trybots Review URL: http://codereview.chromium.org/7034040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86302 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common')
-rw-r--r--content/common/gpu/gpu_video_decode_accelerator.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/content/common/gpu/gpu_video_decode_accelerator.cc b/content/common/gpu/gpu_video_decode_accelerator.cc
index 35d0a0b..e962968 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() {