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

Unified Diff: webkit/plugins/ppapi/ppb_video_decoder_impl.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 | « media/base/bitstream_buffer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/ppapi/ppb_video_decoder_impl.cc
diff --git a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
index 5c317ee1ef105e94fc44ba976b8f744607052071..76edf084db209379bf17774c1c78363fe2f3ac12 100644
--- a/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
+++ b/webkit/plugins/ppapi/ppb_video_decoder_impl.cc
@@ -233,12 +233,10 @@ bool PPB_VideoDecoder_Impl::Decode(
if (!platform_video_decoder_.get())
return false;
- scoped_refptr<PPB_Buffer_Impl> pepper_buffer =
- Resource::GetAs<PPB_Buffer_Impl>(bitstream_buffer->data);
-
- media::BitstreamBuffer decode_buffer(bitstream_buffer->id,
- pepper_buffer->mapped_buffer(),
- bitstream_buffer->size);
+ media::BitstreamBuffer decode_buffer(
+ bitstream_buffer->id,
+ Resource::GetAs<PPB_Buffer_Impl>(bitstream_buffer->data)->handle(),
+ bitstream_buffer->size);
// Store the callback to inform when bitstream buffer has been processed.
// TODO(vmr): handle simultaneous decodes + callbacks.
« no previous file with comments | « media/base/bitstream_buffer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698