Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Unified Diff: ppapi/api/ppb_compositor_layer.idl

Issue 475123003: [PPAPI] Add target param for CompositorLayer::SetTexture(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review issues Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/pepper/pepper_compositor_host.cc ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « content/renderer/pepper/pepper_compositor_host.cc ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698