// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// From ppb_video_decoder.idl modified Tue May 6 05:06:35 2014.
+// From ppb_video_decoder.idl modified Mon Sep 8 16:40:15 2014.
#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_errors.h"
return PP_FromBool(enter.succeeded());
}
+int32_t Initialize_0_1(PP_Resource video_decoder,
+ PP_Resource graphics3d_context,
+ PP_VideoProfile profile,
+ PP_Bool allow_software_fallback,
+ struct PP_CompletionCallback callback) {
+ VLOG(4) << "PPB_VideoDecoder::Initialize()";
+ EnterResource<PPB_VideoDecoder_API> enter(video_decoder, callback, true);
+ if (enter.failed())
+ return enter.retval();
+ return enter.SetResult(enter.object()->Initialize0_1(graphics3d_context,
+ profile,
+ allow_software_fallback,
+ enter.callback()));
+}
+
int32_t Initialize(PP_Resource video_decoder,
PP_Resource graphics3d_context,
PP_VideoProfile profile,
- PP_Bool allow_software_fallback,
+ PP_HardwareAcceleration acceleration,
struct PP_CompletionCallback callback) {
VLOG(4) << "PPB_VideoDecoder::Initialize()";
EnterResource<PPB_VideoDecoder_API> enter(video_decoder, callback, true);
return enter.retval();
return enter.SetResult(enter.object()->Initialize(graphics3d_context,
profile,
- allow_software_fallback,
+ acceleration,
enter.callback()));
}
const PPB_VideoDecoder_0_1 g_ppb_videodecoder_thunk_0_1 = {
&Create,
&IsVideoDecoder,
+ &Initialize_0_1,
+ &Decode,
+ &GetPicture,
+ &RecyclePicture,
+ &Flush,
+ &Reset
+};
+
+const PPB_VideoDecoder_0_2 g_ppb_videodecoder_thunk_0_2 = {
+ &Create,
+ &IsVideoDecoder,
&Initialize,
&Decode,
&GetPicture,
return &g_ppb_videodecoder_thunk_0_1;
}
+PPAPI_THUNK_EXPORT const PPB_VideoDecoder_0_2*
+ GetPPB_VideoDecoder_0_2_Thunk() {
+ return &g_ppb_videodecoder_thunk_0_2;
+}
+
} // namespace thunk
} // namespace ppapi