| Index: ppapi/api/ppb_compositor_layer.idl
|
| diff --git a/ppapi/api/ppb_compositor_layer.idl b/ppapi/api/ppb_compositor_layer.idl
|
| index a457ccc2a63520e5992cc83572c25388a71eceba..ed0967d4fa42a6a9d66d215f93777743a360a06e 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
|
|
|