summaryrefslogtreecommitdiffstats
path: root/media/video
diff options
context:
space:
mode:
authorsail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-08 19:39:45 +0000
committersail@chromium.org <sail@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-08 19:39:45 +0000
commit08bab53f31485b4644a6a318fa5eb606c667ec1b (patch)
treed2e863aaa1a3e133885ae0c5d303a6ec92708c9a /media/video
parent5b31fe43ab3afe06483b34286f856c9ca07639fb (diff)
downloadchromium_src-08bab53f31485b4644a6a318fa5eb606c667ec1b.zip
chromium_src-08bab53f31485b4644a6a318fa5eb606c667ec1b.tar.gz
chromium_src-08bab53f31485b4644a6a318fa5eb606c667ec1b.tar.bz2
Plumb texture target to VideoDecodeAccelerator::Client
Currently all VideoDecodeAccelerator::Clients use GL_TEXTURE_2D as their texture target. Unfortunately the Mac decoder only supports GL_TEXTURE_RECTANGLE_ARB texture targets. This CL allows decoders to choose which texture target they want. BUG=127414 TEST= Review URL: https://chromiumcodereview.appspot.com/10392141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141258 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/video')
-rw-r--r--media/video/video_decode_accelerator.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/media/video/video_decode_accelerator.h b/media/video/video_decode_accelerator.h
index 5fa0d21..c04d8dc 100644
--- a/media/video/video_decode_accelerator.h
+++ b/media/video/video_decode_accelerator.h
@@ -52,8 +52,9 @@ class MEDIA_EXPORT VideoDecodeAccelerator
virtual void NotifyInitializeDone() = 0;
// Callback to tell client how many and what size of buffers to provide.
- virtual void ProvidePictureBuffers(
- uint32 requested_num_of_buffers, const gfx::Size& dimensions) = 0;
+ virtual void ProvidePictureBuffers(uint32 requested_num_of_buffers,
+ const gfx::Size& dimensions,
+ uint32 texture_target) = 0;
// Callback to dismiss picture buffer that was assigned earlier.
virtual void DismissPictureBuffer(int32 picture_buffer_id) = 0;