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

Unified Diff: ppapi/thunk/ppb_content_decryptor_private_thunk.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/thunk/interfaces_ppb_private.h ('k') | ppapi/thunk/ppb_instance_api.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/thunk/ppb_content_decryptor_private_thunk.cc
diff --git a/ppapi/thunk/ppb_content_decryptor_private_thunk.cc b/ppapi/thunk/ppb_content_decryptor_private_thunk.cc
index 3f57a381c5b14ef3cbe2871bcf3a2de3f1b6d65a..e0e4c68cdb576be8b274e5d6f958ca6f34ecf8b1 100644
--- a/ppapi/thunk/ppb_content_decryptor_private_thunk.cc
+++ b/ppapi/thunk/ppb_content_decryptor_private_thunk.cc
@@ -61,6 +61,14 @@ void DeliverBlock(PP_Instance instance,
enter.functions()->DeliverBlock(instance, decrypted_block, block_info);
}
+void DecoderInitialized(PP_Instance instance,
+ PP_Bool success,
+ uint32_t request_id) {
+ EnterInstance enter(instance);
+ if (enter.succeeded())
+ enter.functions()->DecoderInitialized(instance, success, request_id);
+}
+
void DeliverFrame(PP_Instance instance,
PP_Resource decrypted_frame,
const PP_DecryptedFrameInfo* frame_info) {
@@ -83,6 +91,7 @@ const PPB_ContentDecryptor_Private g_ppb_decryption_thunk = {
&KeyMessage,
&KeyError,
&DeliverBlock,
+ &DecoderInitialized,
&DeliverFrame,
&DeliverSamples
};
@@ -90,7 +99,7 @@ const PPB_ContentDecryptor_Private g_ppb_decryption_thunk = {
} // namespace
const PPB_ContentDecryptor_Private*
- GetPPB_ContentDecryptor_Private_0_2_Thunk() {
+ GetPPB_ContentDecryptor_Private_0_3_Thunk() {
return &g_ppb_decryption_thunk;
}
« no previous file with comments | « ppapi/thunk/interfaces_ppb_private.h ('k') | ppapi/thunk/ppb_instance_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698