Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Unified Diff: ppapi/proxy/ppp_video_decoder_proxy.cc

Issue 7844018: Revert 100748 - This patch tries to remove most of the manual registration for Pepper interfaces,... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/ppp_video_decoder_proxy.h ('k') | ppapi/proxy/resource_creation_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « ppapi/proxy/ppp_video_decoder_proxy.h ('k') | ppapi/proxy/resource_creation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698