| 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 5f8ce40ea4f64fc0388716727068a12d750e2ffd..baf180dff02cb7e95019a4d5ca58e04d758e967c 100644
|
| --- a/ppapi/cpp/dev/video_decoder_dev.cc
|
| +++ b/ppapi/cpp/dev/video_decoder_dev.cc
|
| @@ -22,11 +22,13 @@ template <> const char* interface_name<PPB_VideoDecoder_Dev>() {
|
|
|
| } // namespace
|
|
|
| -VideoDecoder_Dev::VideoDecoder_Dev(const Instance& instance) {
|
| +VideoDecoder_Dev::VideoDecoder_Dev(const Instance& instance,
|
| + const Context3D_Dev& context,
|
| + const PP_VideoConfigElement* config) {
|
| if (!has_interface<PPB_VideoDecoder_Dev>())
|
| return;
|
| PassRefFromConstructor(get_interface<PPB_VideoDecoder_Dev>()->Create(
|
| - instance.pp_instance()));
|
| + instance.pp_instance(), context.pp_resource(), config));
|
| }
|
|
|
| VideoDecoder_Dev::VideoDecoder_Dev(PP_Resource resource) : Resource(resource) {
|
| @@ -36,17 +38,6 @@ VideoDecoder_Dev::~VideoDecoder_Dev() {
|
| get_interface<PPB_VideoDecoder_Dev>()->Destroy(pp_resource());
|
| }
|
|
|
| -
|
| -int32_t VideoDecoder_Dev::Initialize(const PP_VideoConfigElement* config,
|
| - const Context3D_Dev& context,
|
| - CompletionCallback callback) {
|
| - if (!has_interface<PPB_VideoDecoder_Dev>())
|
| - return callback.MayForce(PP_ERROR_NOINTERFACE);
|
| - return get_interface<PPB_VideoDecoder_Dev>()->Initialize(
|
| - pp_resource(), context.pp_resource(), config,
|
| - callback.pp_completion_callback());
|
| -}
|
| -
|
| void VideoDecoder_Dev::AssignPictureBuffers(
|
| const std::vector<PP_PictureBuffer_Dev>& buffers) {
|
| if (!has_interface<PPB_VideoDecoder_Dev>() || !pp_resource())
|
|
|