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
diff --git a/ppapi/proxy/ppp_video_decoder_proxy.h b/ppapi/proxy/ppp_video_decoder_proxy.h
index c4ff4c3..84d83a5 100644
--- a/ppapi/proxy/ppp_video_decoder_proxy.h
+++ b/ppapi/proxy/ppp_video_decoder_proxy.h
@@ -30,7 +30,8 @@
// Message handlers.
void OnMsgProvidePictureBuffers(const ppapi::HostResource& decoder,
uint32_t req_num_of_buffers,
- const PP_Size& dimensions);
+ const PP_Size& dimensions,
+ uint32_t texture_target);
void OnMsgDismissPictureBuffer(const ppapi::HostResource& decoder,
int32_t picture_id);
void OnMsgPictureReady(const ppapi::HostResource& decoder,