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

Unified Diff: ppapi/proxy/ppb_instance_proxy.cc

Issue 11013052: Add PPAPI CDM video decoder initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 8 years, 2 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/ppb_instance_proxy.h ('k') | ppapi/proxy/ppp_content_decryptor_private_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_instance_proxy.cc
diff --git a/ppapi/proxy/ppb_instance_proxy.cc b/ppapi/proxy/ppb_instance_proxy.cc
index 373451237eb3dd105b87e54054757c6c5a144c3a..d98f79979ff323d35deb8f3283304f9ccc7aca4e 100644
--- a/ppapi/proxy/ppb_instance_proxy.cc
+++ b/ppapi/proxy/ppb_instance_proxy.cc
@@ -167,6 +167,8 @@ bool PPB_Instance_Proxy::OnMessageReceived(const IPC::Message& msg) {
OnHostMsgKeyError)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_DeliverBlock,
OnHostMsgDeliverBlock)
+ IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_DecoderInitialized,
+ OnHostMsgDecoderInitialized)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_DeliverFrame,
OnHostMsgDeliverFrame)
IPC_MESSAGE_HANDLER(PpapiHostMsg_PPBInstance_DeliverSamples,
@@ -532,6 +534,17 @@ void PPB_Instance_Proxy::DeliverBlock(PP_Instance instance,
serialized_block_info));
}
+void PPB_Instance_Proxy::DecoderInitialized(PP_Instance instance,
+ PP_Bool success,
+ uint32_t request_id) {
+ dispatcher()->Send(
+ new PpapiHostMsg_PPBInstance_DecoderInitialized(
+ API_ID_PPB_INSTANCE,
+ instance,
+ success,
+ request_id));
+}
+
void PPB_Instance_Proxy::DeliverFrame(PP_Instance instance,
PP_Resource decrypted_frame,
const PP_DecryptedFrameInfo* frame_info) {
@@ -952,6 +965,15 @@ void PPB_Instance_Proxy::OnHostMsgDeliverBlock(
enter.functions()->DeliverBlock(instance, decrypted_block, &block_info);
}
+void PPB_Instance_Proxy::OnHostMsgDecoderInitialized(
+ PP_Instance instance,
+ PP_Bool success,
+ uint32_t request_id) {
+ EnterInstanceNoLock enter(instance);
+ if (enter.succeeded())
+ enter.functions()->DecoderInitialized(instance, success, request_id);
+}
+
void PPB_Instance_Proxy::OnHostMsgDeliverFrame(
PP_Instance instance,
PP_Resource decrypted_frame,
« no previous file with comments | « ppapi/proxy/ppb_instance_proxy.h ('k') | ppapi/proxy/ppp_content_decryptor_private_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698