diff options
author | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-15 21:30:16 +0000 |
---|---|---|
committer | penghuang@chromium.org <penghuang@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-15 21:32:05 +0000 |
commit | 1c28b793441e42107265c9e8514572d6fd2c7085 (patch) | |
tree | 1e6eff45da50fab026a4a6b1ffd33803cd399ad2 /ppapi/api | |
parent | d904aeef98036af5688e6b73990bd7104a5d4e0b (diff) | |
download | chromium_src-1c28b793441e42107265c9e8514572d6fd2c7085.zip chromium_src-1c28b793441e42107265c9e8514572d6fd2c7085.tar.gz chromium_src-1c28b793441e42107265c9e8514572d6fd2c7085.tar.bz2 |
[PPAPI] Add target param for CompositorLayer::SetTexture().
BUG=403504
Review URL: https://codereview.chromium.org/475123003
Cr-Commit-Position: refs/heads/master@{#290016}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290016 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api')
-rw-r--r-- | ppapi/api/ppb_compositor_layer.idl | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/ppapi/api/ppb_compositor_layer.idl b/ppapi/api/ppb_compositor_layer.idl index a457ccc..ed0967d 100644 --- a/ppapi/api/ppb_compositor_layer.idl +++ b/ppapi/api/ppb_compositor_layer.idl @@ -6,7 +6,8 @@ [generate_thunk] label Chrome { - [channel=dev] M37 = 0.1 + [channel=dev] M37 = 0.1, + [channel=dev] M38 = 0.2 }; /** @@ -108,6 +109,34 @@ interface PPB_CompositorLayer { [in] PP_CompletionCallback cc); /** + * Sets the texture of a texture layer. If the layer is uninitialized, + * it will initialize the layer first, and then set its texture. + * The source rect will be set to ((0, 0), (1, 1)). If the layer has been + * initialized to another kind of layer, the layer will not be changed, + * and <code>PP_ERROR_BADARGUMENT</code> will be returned. + * + * param[in] layer A <code>PP_Resource</code> corresponding to a compositor + * layer resource. + * param[in] context A <code>PP_Resource</code> corresponding to a graphics + * 3d resource which owns the GL texture. + * param[in] target GL texture target (GL_TEXTURE_2D, etc). + * param[in] texture A GL texture object id. + * param[in] size A <code>PP_Size</code> for the size of the layer before + * transform. + * param[in] cc A <code>PP_CompletionCallback</code> to be called when + * the texture is released by Chromium compositor. + * + * @return An int32_t containing a result code from <code>pp_errors.h</code>. + */ + [version = 0.2] + int32_t SetTexture([in] PP_Resource layer, + [in] PP_Resource context, + [in] uint32_t target, + [in] uint32_t texture, + [in] PP_Size size, + [in] PP_CompletionCallback cc); + + /** * Sets the image of an image layer. If the layer is uninitialized, * it will initialize the layer first, and then set its image. * The layer size will be set to the image's size. The source rect will be set |