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

Unified Diff: content/common/gpu/gpu_video_decode_accelerator.cc

Issue 7034040: Updated video decoder IPC to use PPB_Buffer_Dev's new support for SharedMemory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR response. Created 9 years, 7 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 | « no previous file | content/gpu/omx_video_decode_accelerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | content/gpu/omx_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698