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

Unified Diff: webkit/plugins/ppapi/ppb_video_decoder_impl.h

Issue 7204038: Fix PPB_VideoDecoder_Impl::NotifyEndOfBitstreamBuffer to use correct ID. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 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
Index: webkit/plugins/ppapi/ppb_video_decoder_impl.h
diff --git a/webkit/plugins/ppapi/ppb_video_decoder_impl.h b/webkit/plugins/ppapi/ppb_video_decoder_impl.h
index 0b394182d4d3a65ec6157ba039411b255ee70f3d..bc6b7ffd54999c32b58fe396822209171522687a 100644
--- a/webkit/plugins/ppapi/ppb_video_decoder_impl.h
+++ b/webkit/plugins/ppapi/ppb_video_decoder_impl.h
@@ -75,6 +75,10 @@ class PPB_VideoDecoder_Impl : public Resource,
virtual void NotifyAbortDone() OVERRIDE;
private:
+ // Key: bitstream_buffer_id, value: callback to run when bitstream decode is
+ // done.
+ typedef std::map<int32, PP_CompletionCallback> CallbackById;
+
// This is NULL before initialization, and if this PPB_VideoDecoder_Impl is
// swapped with another.
scoped_ptr<PluginDelegate::PlatformVideoDecoder> platform_video_decoder_;
@@ -85,7 +89,7 @@ class PPB_VideoDecoder_Impl : public Resource,
PP_CompletionCallback initialization_callback_;
PP_CompletionCallback abort_callback_;
PP_CompletionCallback flush_callback_;
- PP_CompletionCallback bitstream_buffer_callback_;
+ CallbackById bitstream_buffer_callbacks_;
// Reference to the plugin requesting this interface.
const PPP_VideoDecoder_Dev* ppp_videodecoder_;

Powered by Google App Engine
This is Rietveld 408576698