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

Unified Diff: ppapi/api/dev/ppp_video_decoder_dev.idl

Issue 10392141: Plumb texture target to VideoDecodeAccelerator::Client (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win build Created 8 years, 6 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 | « media/video/video_decode_accelerator.h ('k') | ppapi/c/dev/ppp_video_decoder_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/dev/ppp_video_decoder_dev.idl
diff --git a/ppapi/api/dev/ppp_video_decoder_dev.idl b/ppapi/api/dev/ppp_video_decoder_dev.idl
index 2a6e419cc2ae184a22831febb53dd5b9dfb59e66..1f6d8c66c441174936f0e229e7d0133b67114e29 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.
*
« no previous file with comments | « media/video/video_decode_accelerator.h ('k') | ppapi/c/dev/ppp_video_decoder_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698