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

Unified Diff: ppapi/thunk/ppb_video_decoder_thunk.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/thunk/interfaces_ppb_public_dev.h ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_video_decoder_thunk.cc
diff --git a/ppapi/thunk/ppb_video_decoder_thunk.cc b/ppapi/thunk/ppb_video_decoder_thunk.cc
index 594b3366c744e31481eea54da7ad0357d2863a38..2fd62d2e20031b009f6fa0684574e03f6e127163 100644
--- a/ppapi/thunk/ppb_video_decoder_thunk.cc
+++ b/ppapi/thunk/ppb_video_decoder_thunk.cc
@@ -17,11 +17,15 @@ typedef EnterResource<PPB_VideoDecoder_API> EnterVideoDecoder;
PP_Resource Create(PP_Instance instance,
PP_Resource graphics_3d,
- PP_VideoDecoder_Profile profile) {
+ PP_VideoDecoder_Profile profile,
+ const PP_Size* frame_size,
+ const uint8_t* extra_data,
+ uint32_t extra_data_size) {
EnterResourceCreation enter(instance);
if (enter.failed())
return 0;
- return enter.functions()->CreateVideoDecoder(instance, graphics_3d, profile);
+ return enter.functions()->CreateVideoDecoder(instance, graphics_3d, profile,
+ *frame_size, extra_data, extra_data_size);
}
PP_Bool IsVideoDecoder(PP_Resource resource) {
@@ -86,7 +90,7 @@ const PPB_VideoDecoder_Dev g_ppb_videodecoder_thunk = {
} // namespace
-const PPB_VideoDecoder_Dev_0_16* GetPPB_VideoDecoder_Dev_0_16_Thunk() {
+const PPB_VideoDecoder_Dev_0_17* GetPPB_VideoDecoder_Dev_0_17_Thunk() {
return &g_ppb_videodecoder_thunk;
}
« no previous file with comments | « ppapi/thunk/interfaces_ppb_public_dev.h ('k') | ppapi/thunk/resource_creation_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698