| Index: ppapi/proxy/ppp_video_decoder_proxy.cc
|
| ===================================================================
|
| --- ppapi/proxy/ppp_video_decoder_proxy.cc (revision 100753)
|
| +++ ppapi/proxy/ppp_video_decoder_proxy.cc (working copy)
|
| @@ -78,19 +78,16 @@
|
| &NotifyError
|
| };
|
|
|
| -InterfaceProxy* CreateVideoDecoderPPPProxy(Dispatcher* dispatcher) {
|
| - return new PPP_VideoDecoder_Proxy(dispatcher);
|
| +InterfaceProxy* CreateVideoDecoderPPPProxy(
|
| + Dispatcher* dispatcher, const void* target_interface) {
|
| + return new PPP_VideoDecoder_Proxy(dispatcher, target_interface);
|
| }
|
|
|
| } // namespace
|
|
|
| -PPP_VideoDecoder_Proxy::PPP_VideoDecoder_Proxy(Dispatcher* dispatcher)
|
| - : InterfaceProxy(dispatcher),
|
| - ppp_video_decoder_impl_(NULL) {
|
| - if (dispatcher->IsPlugin()) {
|
| - ppp_video_decoder_impl_ = static_cast<const PPP_VideoDecoder_Dev*>(
|
| - dispatcher->local_get_interface()(PPP_VIDEODECODER_DEV_INTERFACE));
|
| - }
|
| +PPP_VideoDecoder_Proxy::PPP_VideoDecoder_Proxy(
|
| + Dispatcher* dispatcher, const void* target_interface)
|
| + : InterfaceProxy(dispatcher, target_interface) {
|
| }
|
|
|
| PPP_VideoDecoder_Proxy::~PPP_VideoDecoder_Proxy() {
|
| @@ -132,7 +129,7 @@
|
| const PP_Size& dimensions) {
|
| PP_Resource plugin_decoder = PluginResourceTracker::GetInstance()->
|
| PluginResourceForHostResource(decoder);
|
| - ppp_video_decoder_impl_->ProvidePictureBuffers(
|
| + ppp_video_decoder_target()->ProvidePictureBuffers(
|
| decoder.instance(), plugin_decoder, req_num_of_bufs, dimensions);
|
| }
|
|
|
| @@ -140,7 +137,7 @@
|
| const HostResource& decoder, int32_t picture_id) {
|
| PP_Resource plugin_decoder = PluginResourceTracker::GetInstance()->
|
| PluginResourceForHostResource(decoder);
|
| - ppp_video_decoder_impl_->DismissPictureBuffer(
|
| + ppp_video_decoder_target()->DismissPictureBuffer(
|
| decoder.instance(), plugin_decoder, picture_id);
|
| }
|
|
|
| @@ -148,7 +145,7 @@
|
| const HostResource& decoder, const PP_Picture_Dev& picture) {
|
| PP_Resource plugin_decoder = PluginResourceTracker::GetInstance()->
|
| PluginResourceForHostResource(decoder);
|
| - ppp_video_decoder_impl_->PictureReady(
|
| + ppp_video_decoder_target()->PictureReady(
|
| decoder.instance(), plugin_decoder, picture);
|
| }
|
|
|
| @@ -156,7 +153,7 @@
|
| const HostResource& decoder) {
|
| PP_Resource plugin_decoder = PluginResourceTracker::GetInstance()->
|
| PluginResourceForHostResource(decoder);
|
| - ppp_video_decoder_impl_->EndOfStream(decoder.instance(),
|
| + ppp_video_decoder_target()->EndOfStream(decoder.instance(),
|
| plugin_decoder);
|
| }
|
|
|
| @@ -164,7 +161,7 @@
|
| const HostResource& decoder, PP_VideoDecodeError_Dev error) {
|
| PP_Resource plugin_decoder = PluginResourceTracker::GetInstance()->
|
| PluginResourceForHostResource(decoder);
|
| - ppp_video_decoder_impl_->NotifyError(
|
| + ppp_video_decoder_target()->NotifyError(
|
| decoder.instance(), plugin_decoder, error);
|
| }
|
|
|
|
|