summaryrefslogtreecommitdiffstats
path: root/ppapi/api
diff options
context:
space:
mode:
authorbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 20:24:01 +0000
committerbbudge@chromium.org <bbudge@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 20:24:01 +0000
commit7ee85d62a62726b2e86dc78efb8e89df6c44643e (patch)
tree33e8ffc970d3142143136060c50baac511d1b93b /ppapi/api
parent11db6c2a71141a3fe28d8bc9080b7b341ce7563a (diff)
downloadchromium_src-7ee85d62a62726b2e86dc78efb8e89df6c44643e.zip
chromium_src-7ee85d62a62726b2e86dc78efb8e89df6c44643e.tar.gz
chromium_src-7ee85d62a62726b2e86dc78efb8e89df6c44643e.tar.bz2
Pepper: Change PPB_VideoDecoder::Reset behavior so plugin always manages textures.
Reset now will allow plugin to call RecyclePicture. The plugin must recycle any texture it receives now. This makes plugin code simpler, since it can treat all textures it receives in the same way (no special Reset handling). Also fix a bug where Reset didn't return textures to the hardware decoder, which already has this behavior. BUG=281689 Review URL: https://codereview.chromium.org/390213002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283483 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/api')
-rw-r--r--ppapi/api/ppb_video_decoder.idl11
1 files changed, 6 insertions, 5 deletions
diff --git a/ppapi/api/ppb_video_decoder.idl b/ppapi/api/ppb_video_decoder.idl
index ab38e9f..b450633 100644
--- a/ppapi/api/ppb_video_decoder.idl
+++ b/ppapi/api/ppb_video_decoder.idl
@@ -177,8 +177,8 @@ interface PPB_VideoDecoder {
* the decoder signals completion by running |callback|. Just before
* completion, any pending GetPicture() call will complete by running its
* callback with result PP_ERROR_ABORTED to signal that no more pictures are
- * available. The plugin should recycle any pictures it is using before
- * resuming decoding.
+ * available. Any pictures held by the plugin remain valid during and after
+ * the flush and should be recycled back to the decoder.
*
* @param[in] video_decoder A <code>PP_Resource</code> identifying the video
* decoder.
@@ -197,9 +197,10 @@ interface PPB_VideoDecoder {
* skip to another position in the video stream. After Reset() returns, any
* pending calls to Decode() and GetPicture()) abort, causing their callbacks
* to run with PP_ERROR_ABORTED. The plugin should not make further calls to
- * the decoder until the decoder signals completion by running |callback|.
- * The pictures in use by the plugin remain valid until decoding is resumed,
- * but need not be recycled.
+ * the decoder other than RecyclePicture() until the decoder signals
+ * completion by running |callback|. Any pictures held by the plugin remain
+ * valid during and after the reset and should be recycled back to the
+ * decoder.
*
* @param[in] video_decoder A <code>PP_Resource</code> identifying the video
* decoder.