diff options
author | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-25 20:54:02 +0000 |
---|---|---|
committer | vrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-25 20:54:02 +0000 |
commit | 4c2109d8bbb2fd92dc9d3be1cfc93c0877f41bad (patch) | |
tree | 99531b431061af2ae3585374c0b34ee94612aa68 /ppapi/c | |
parent | 6e001bbb455a9555b95df2f8098ef105d022978b (diff) | |
download | chromium_src-4c2109d8bbb2fd92dc9d3be1cfc93c0877f41bad.zip chromium_src-4c2109d8bbb2fd92dc9d3be1cfc93c0877f41bad.tar.gz chromium_src-4c2109d8bbb2fd92dc9d3be1cfc93c0877f41bad.tar.bz2 |
Add initialization callback support for Video Decoder PPAPI.
Initializing a decoder is asynchronous, so add a callback to tell client
when the decoder is ready to use.
I confirmed that this works locally using a C plugin that I wrote on my machine.
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/7065010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86699 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c')
-rw-r--r-- | ppapi/c/dev/ppb_video_decoder_dev.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ppapi/c/dev/ppb_video_decoder_dev.h b/ppapi/c/dev/ppb_video_decoder_dev.h index 8cf9851..46eded5 100644 --- a/ppapi/c/dev/ppb_video_decoder_dev.h +++ b/ppapi/c/dev/ppb_video_decoder_dev.h @@ -9,8 +9,8 @@ #include "ppapi/c/pp_completion_callback.h" #include "ppapi/c/pp_var.h" -#define PPB_VIDEODECODER_DEV_INTERFACE_0_7 "PPB_VideoDecoder(Dev);0.7" -#define PPB_VIDEODECODER_DEV_INTERFACE PPB_VIDEODECODER_DEV_INTERFACE_0_7 +#define PPB_VIDEODECODER_DEV_INTERFACE_0_8 "PPB_VideoDecoder(Dev);0.8" +#define PPB_VIDEODECODER_DEV_INTERFACE PPB_VIDEODECODER_DEV_INTERFACE_0_8 // Video decoder interface. // @@ -131,10 +131,12 @@ struct PPB_VideoDecoder_Dev { // Parameters: // |instance| pointer to the plugin instance. // |dec_config| the configuration which to use to initialize the decoder. + // |callback| called after initialize is complete. // // The created decoder is returned as PP_Resource. NULL means failure. PP_Resource (*Create)(PP_Instance instance, - PP_VideoConfigElement* dec_config); + PP_VideoConfigElement* dec_config, + struct PP_CompletionCallback callback); // Tests whether |resource| is a video decoder created through Create // function of this interface. |