summaryrefslogtreecommitdiffstats
path: root/ppapi/thunk/ppb_video_decoder_api.h
diff options
context:
space:
mode:
authorvrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 16:29:07 +0000
committervrk@google.com <vrk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-19 16:29:07 +0000
commit6ceb1207c32f4ecdd9d693e77c4e9ec5eda5efa2 (patch)
tree32cf752999123875fac24b27da13d2d78cd4eddc /ppapi/thunk/ppb_video_decoder_api.h
parent5818639c6c590be2290e72706064a6ab4b3b6aad (diff)
downloadchromium_src-6ceb1207c32f4ecdd9d693e77c4e9ec5eda5efa2.zip
chromium_src-6ceb1207c32f4ecdd9d693e77c4e9ec5eda5efa2.tar.gz
chromium_src-6ceb1207c32f4ecdd9d693e77c4e9ec5eda5efa2.tar.bz2
Remove redundant size and type information from VideoDecode PPAPI
The visible size of the video frame is determined at Create stage. The type of buffer (from system memory or texture-backed via GLES) is decided by the plugin when it calls AssignGLESBuffers or AssignSysmemBuffers in response to ProvidePictureBuffers. The decoded size will be the same as the size requested in ProvidePictureBuffers. Thus these values specified anywhere else is redundant, and introduces a place to have inconsistency. BUG=NONE TEST=ovda unittest passes; gles2 runs w/o crashing Review URL: http://codereview.chromium.org/7021020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93031 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/thunk/ppb_video_decoder_api.h')
-rw-r--r--ppapi/thunk/ppb_video_decoder_api.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ppapi/thunk/ppb_video_decoder_api.h b/ppapi/thunk/ppb_video_decoder_api.h
index 15c540a..5f8063c 100644
--- a/ppapi/thunk/ppb_video_decoder_api.h
+++ b/ppapi/thunk/ppb_video_decoder_api.h
@@ -19,8 +19,8 @@ class PPB_VideoDecoder_API {
PP_CompletionCallback callback) = 0;
virtual int32_t Decode(const PP_VideoBitstreamBuffer_Dev* bitstream_buffer,
PP_CompletionCallback callback) = 0;
- virtual void AssignGLESBuffers(uint32_t no_of_buffers,
- const PP_GLESBuffer_Dev* buffers) = 0;
+ virtual void AssignPictureBuffers(uint32_t no_of_buffers,
+ const PP_PictureBuffer_Dev* buffers) = 0;
virtual void ReusePictureBuffer(int32_t picture_buffer_id) = 0;
virtual int32_t Flush(PP_CompletionCallback callback) = 0;
virtual int32_t Reset(PP_CompletionCallback callback) = 0;