diff options
author | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 19:39:45 +0000 |
---|---|---|
committer | sail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-08 19:39:45 +0000 |
commit | 08bab53f31485b4644a6a318fa5eb606c667ec1b (patch) | |
tree | d2e863aaa1a3e133885ae0c5d303a6ec92708c9a /ppapi/api/dev | |
parent | 5b31fe43ab3afe06483b34286f856c9ca07639fb (diff) | |
download | chromium_src-08bab53f31485b4644a6a318fa5eb606c667ec1b.zip chromium_src-08bab53f31485b4644a6a318fa5eb606c667ec1b.tar.gz chromium_src-08bab53f31485b4644a6a318fa5eb606c667ec1b.tar.bz2 |
Plumb texture target to VideoDecodeAccelerator::Client
Currently all VideoDecodeAccelerator::Clients use GL_TEXTURE_2D as their texture target.
Unfortunately the Mac decoder only supports GL_TEXTURE_RECTANGLE_ARB texture targets.
This CL allows decoders to choose which texture target they want.
BUG=127414
TEST=
Review URL: https://chromiumcodereview.appspot.com/10392141
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141258 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api/dev')
-rw-r--r-- | ppapi/api/dev/ppp_video_decoder_dev.idl | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/ppapi/api/dev/ppp_video_decoder_dev.idl b/ppapi/api/dev/ppp_video_decoder_dev.idl index 2a6e419..1f6d8c6 100644 --- a/ppapi/api/dev/ppp_video_decoder_dev.idl +++ b/ppapi/api/dev/ppp_video_decoder_dev.idl @@ -8,7 +8,8 @@ */ label Chrome { M14 = 0.9, - M18 = 0.10 + M18 = 0.10, + M21 = 0.11 }; /** @@ -33,6 +34,7 @@ interface PPP_VideoDecoder_Dev { * |req_num_of_bufs| tells how many buffers are needed by the decoder. * |dimensions| tells the dimensions of the buffer to allocate. */ + [deprecate=0.11] void ProvidePictureBuffers( [in] PP_Instance instance, [in] PP_Resource decoder, @@ -40,6 +42,29 @@ interface PPP_VideoDecoder_Dev { [in] PP_Size dimensions); /** + * Callback function to provide buffers for the decoded output pictures. If + * succeeds plugin must provide buffers through AssignPictureBuffers function + * to the API. If |req_num_of_bufs| matching exactly the specification + * given in the parameters cannot be allocated decoder should be destroyed. + * + * Decoding will not proceed until buffers have been provided. + * + * Parameters: + * |instance| the plugin instance to which the callback is responding. + * |decoder| the PPB_VideoDecoder_Dev resource. + * |req_num_of_bufs| tells how many buffers are needed by the decoder. + * |dimensions| tells the dimensions of the buffer to allocate. + * |texture_target| the type of texture used. + */ + [version=0.11] + void ProvidePictureBuffers( + [in] PP_Instance instance, + [in] PP_Resource decoder, + [in] uint32_t req_num_of_bufs, + [in] PP_Size dimensions, + [in] uint32_t texture_target); + + /** * Callback function for decoder to deliver unneeded picture buffers back to * the plugin. * |