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

Unified Diff: ppapi/cpp/dev/video_decoder_dev.cc

Issue 10408003: Plumb extra_data() to VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev interface versino Created 8 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 | « ppapi/cpp/dev/video_decoder_dev.h ('k') | ppapi/examples/video_decode/video_decode.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/dev/video_decoder_dev.cc
diff --git a/ppapi/cpp/dev/video_decoder_dev.cc b/ppapi/cpp/dev/video_decoder_dev.cc
index ad2ebd6579fbe7ad49c2fcbcdf8f266481bc5be4..2c2c3502a67ad2848a0a195b01f662c2a81ebcb5 100644
--- a/ppapi/cpp/dev/video_decoder_dev.cc
+++ b/ppapi/cpp/dev/video_decoder_dev.cc
@@ -24,11 +24,14 @@ template <> const char* interface_name<PPB_VideoDecoder_Dev>() {
VideoDecoder_Dev::VideoDecoder_Dev(const InstanceHandle& instance,
const Graphics3D& context,
- PP_VideoDecoder_Profile profile) {
+ PP_VideoDecoder_Profile profile,
+ const PP_Size& frame_size,
+ const std::vector<uint8_t>& extra_data) {
if (!has_interface<PPB_VideoDecoder_Dev>())
return;
PassRefFromConstructor(get_interface<PPB_VideoDecoder_Dev>()->Create(
- instance.pp_instance(), context.pp_resource(), profile));
+ instance.pp_instance(), context.pp_resource(), profile, &frame_size,
+ extra_data.empty() ? NULL : &extra_data[0], extra_data.size()));
}
VideoDecoder_Dev::VideoDecoder_Dev(PP_Resource resource) : Resource(resource) {
« no previous file with comments | « ppapi/cpp/dev/video_decoder_dev.h ('k') | ppapi/examples/video_decode/video_decode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698