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

Unified Diff: ppapi/proxy/ppp_video_decoder_proxy.cc

Issue 9361065: reland 121901, PPAPI: Add unlocking for PPP calls and callbacks... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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_mouse_lock_proxy.cc ('k') | ppapi/proxy/serialized_var_unittest.cc » ('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
diff --git a/ppapi/proxy/ppp_video_decoder_proxy.cc b/ppapi/proxy/ppp_video_decoder_proxy.cc
index 6330b1199a793e2da3b9f0a24aae6714f6402388..1ebf20a0bf232c8ff52e1af33c6fb051d60c62fc 100644
--- a/ppapi/proxy/ppp_video_decoder_proxy.cc
+++ b/ppapi/proxy/ppp_video_decoder_proxy.cc
@@ -122,32 +122,41 @@ void PPP_VideoDecoder_Proxy::OnMsgProvidePictureBuffers(
const PP_Size& dimensions) {
PP_Resource plugin_decoder = PluginGlobals::Get()->plugin_resource_tracker()->
PluginResourceForHostResource(decoder);
- ppp_video_decoder_impl_->ProvidePictureBuffers(
- decoder.instance(), plugin_decoder, req_num_of_bufs, &dimensions);
+ CallWhileUnlocked(ppp_video_decoder_impl_->ProvidePictureBuffers,
+ decoder.instance(),
+ plugin_decoder,
+ req_num_of_bufs,
+ &dimensions);
}
void PPP_VideoDecoder_Proxy::OnMsgDismissPictureBuffer(
const HostResource& decoder, int32_t picture_id) {
PP_Resource plugin_decoder = PluginGlobals::Get()->plugin_resource_tracker()->
PluginResourceForHostResource(decoder);
- ppp_video_decoder_impl_->DismissPictureBuffer(
- decoder.instance(), plugin_decoder, picture_id);
+ CallWhileUnlocked(ppp_video_decoder_impl_->DismissPictureBuffer,
+ decoder.instance(),
+ plugin_decoder,
+ picture_id);
}
void PPP_VideoDecoder_Proxy::OnMsgPictureReady(
const HostResource& decoder, const PP_Picture_Dev& picture) {
PP_Resource plugin_decoder = PluginGlobals::Get()->plugin_resource_tracker()->
PluginResourceForHostResource(decoder);
- ppp_video_decoder_impl_->PictureReady(
- decoder.instance(), plugin_decoder, &picture);
+ CallWhileUnlocked(ppp_video_decoder_impl_->PictureReady,
+ decoder.instance(),
+ plugin_decoder,
+ &picture);
}
void PPP_VideoDecoder_Proxy::OnMsgNotifyError(
const HostResource& decoder, PP_VideoDecodeError_Dev error) {
PP_Resource plugin_decoder = PluginGlobals::Get()->plugin_resource_tracker()->
PluginResourceForHostResource(decoder);
- ppp_video_decoder_impl_->NotifyError(
- decoder.instance(), plugin_decoder, error);
+ CallWhileUnlocked(ppp_video_decoder_impl_->NotifyError,
+ decoder.instance(),
+ plugin_decoder,
+ error);
}
} // namespace proxy
« no previous file with comments | « ppapi/proxy/ppp_mouse_lock_proxy.cc ('k') | ppapi/proxy/serialized_var_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698