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

Issue 11013052: Add PPAPI CDM video decoder initialization. (Closed)

Created:
8 years, 2 months ago by Tom Finegan
Modified:
8 years, 2 months ago
Visibility:
Public.

Description

Add PPAPI CDM video decoder initialization. Updates PPB and PPP sides of PPAPI Content Decryptor interfaces to support video decoder intialization. Adds support for decoder initialization in the PPAPI proxy, plugin instance, and the CDM wrapper. Adds new PPAPI types PP_VideoCodecProfile and PP_VideoDecoderConfig. Adds method InitializeVideoDecoder to PPP_ContentDecryptor_Private. Adds method DecoderInitialized to PPB_ContentDecryptor_Private. BUG=141780 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161448

Patch Set 1 #

Patch Set 2 : Decoder init, first pass. #

Total comments: 67

Patch Set 3 : Comments addressed with the exceptions being some questions and TODOs. #

Total comments: 9

Patch Set 4 : Address additional comments (plus the one I missed earlier). #

Patch Set 5 : Replace defaults in conversion functions to fix MSVC build breakage. #

Patch Set 6 : Add missing IPC handler. #

Total comments: 4

Patch Set 7 : #

Total comments: 2

Patch Set 8 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+641 lines, -127 lines) Patch
M ppapi/api/private/pp_content_decryptor.idl View 1 2 1 chunk +54 lines, -0 lines 0 comments Download
M ppapi/api/private/ppb_content_decryptor_private.idl View 1 2 2 chunks +21 lines, -1 line 0 comments Download
M ppapi/api/private/ppp_content_decryptor_private.idl View 1 2 3 chunks +25 lines, -3 lines 0 comments Download
M ppapi/c/private/pp_content_decryptor.h View 1 2 2 chunks +64 lines, -1 line 0 comments Download
M ppapi/c/private/ppb_content_decryptor_private.h View 1 2 5 chunks +24 lines, -6 lines 0 comments Download
M ppapi/c/private/ppp_content_decryptor_private.h View 1 2 5 chunks +27 lines, -6 lines 0 comments Download
M ppapi/cpp/private/content_decryptor_private.h View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M ppapi/cpp/private/content_decryptor_private.cc View 1 2 3 chunks +29 lines, -0 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 11 chunks +67 lines, -53 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 7 3 chunks +22 lines, -0 lines 0 comments Download
M ppapi/proxy/ppp_content_decryptor_private_proxy.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M ppapi/proxy/ppp_content_decryptor_private_proxy.cc View 1 2 3 4 5 6 chunks +110 lines, -39 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/thunk/ppb_content_decryptor_private_thunk.cc View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/media/crypto/ppapi/cdm_wrapper.cc View 1 2 3 4 5 6 7 6 chunks +75 lines, -13 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 4 5 6 7 4 chunks +9 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 4 chunks +76 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
Tom Finegan
PTAL, thanks!
8 years, 2 months ago (2012-10-06 23:56:35 UTC) #1
xhwang
Nice CL! I reviewed most of the CL but I am not an expert in ...
8 years, 2 months ago (2012-10-08 17:16:13 UTC) #2
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/11013052/diff/2001/ppapi/api/private/pp_content_decryptor.idl File ppapi/api/private/pp_content_decryptor.idl (right): http://codereview.chromium.org/11013052/diff/2001/ppapi/api/private/pp_content_decryptor.idl#newcode131 ppapi/api/private/pp_content_decryptor.idl:131: enum PP_VideoCodec { can probably drop this (see comment ...
8 years, 2 months ago (2012-10-08 18:35:16 UTC) #3
xhwang
http://codereview.chromium.org/11013052/diff/2001/ppapi/api/private/pp_content_decryptor.idl File ppapi/api/private/pp_content_decryptor.idl (right): http://codereview.chromium.org/11013052/diff/2001/ppapi/api/private/pp_content_decryptor.idl#newcode309 ppapi/api/private/pp_content_decryptor.idl:309: * Client-specified identifier for the associated video decoder intialization ...
8 years, 2 months ago (2012-10-08 19:00:35 UTC) #4
Tom Finegan
PTAL-- comments mostly addressed, but there's probably some discussion required for some of them. Thanks! ...
8 years, 2 months ago (2012-10-08 23:23:27 UTC) #5
xhwang
Mostly looking good. Just a few more minor comments. Again, I am not sure if ...
8 years, 2 months ago (2012-10-09 00:49:08 UTC) #6
Tom Finegan
http://codereview.chromium.org/11013052/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/11013052/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode439 webkit/plugins/ppapi/ppapi_plugin_instance.cc:439: case media::VideoFrame::NATIVE_TEXTURE: On 2012/10/09 00:49:08, xhwang wrote: > On ...
8 years, 2 months ago (2012-10-09 01:12:42 UTC) #7
Tom Finegan
> Another question (not required for this CL), what's your plan to support > Reset/Stop ...
8 years, 2 months ago (2012-10-09 04:34:11 UTC) #8
Ami GONE FROM CHROMIUM
LGTM % nits http://codereview.chromium.org/11013052/diff/2001/ppapi/api/private/pp_content_decryptor.idl File ppapi/api/private/pp_content_decryptor.idl (right): http://codereview.chromium.org/11013052/diff/2001/ppapi/api/private/pp_content_decryptor.idl#newcode271 ppapi/api/private/pp_content_decryptor.idl:271: PP_VIDEOCODECPROFILE_UNKNOWN = 0, On 2012/10/08 23:23:27, ...
8 years, 2 months ago (2012-10-09 07:21:12 UTC) #9
xhwang
please address fischman's comments, otherwise lgtm. http://codereview.chromium.org/11013052/diff/7003/webkit/media/crypto/ppapi/cdm_wrapper.cc File webkit/media/crypto/ppapi/cdm_wrapper.cc (right): http://codereview.chromium.org/11013052/diff/7003/webkit/media/crypto/ppapi/cdm_wrapper.cc#newcode577 webkit/media/crypto/ppapi/cdm_wrapper.cc:577: cdm_decoder_config.codec = PpVideoCodecToCdmVideoCodec(decoder_config.codec); ...
8 years, 2 months ago (2012-10-09 15:50:49 UTC) #10
Tom Finegan
brettw: I think this is ready for the pepper review, PTAL. I think I've addressed ...
8 years, 2 months ago (2012-10-09 19:49:08 UTC) #11
Tom Finegan
FYI re red bots: I think I need to rebase, but I'm going to wait ...
8 years, 2 months ago (2012-10-09 21:59:17 UTC) #12
brettw
LGTM. Note: I don't really understand the big picture here and I don't have time ...
8 years, 2 months ago (2012-10-11 20:45:58 UTC) #13
Tom Finegan
Thanks for the review! Answered const_cast comment w/another comment. Rebase, rebuild, and land in progress... ...
8 years, 2 months ago (2012-10-11 21:04:04 UTC) #14
brettw
Ah, closure stuff with implied types. Carry on then!
8 years, 2 months ago (2012-10-11 21:07:53 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tomfinegan@chromium.org/11013052/20003
8 years, 2 months ago (2012-10-11 21:32:50 UTC) #16
commit-bot: I haz the power
Commit queue rejected this change because the description was changed between the time the change ...
8 years, 2 months ago (2012-10-11 23:36:59 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tomfinegan@chromium.org/11013052/20003
8 years, 2 months ago (2012-10-11 23:42:21 UTC) #18
commit-bot: I haz the power
8 years, 2 months ago (2012-10-11 23:43:57 UTC) #19
Change committed as 161448

Powered by Google App Engine
This is Rietveld 408576698