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

Issue 11091005: Update PluginInstance for decrypt-and-decode video. (Closed)

Created:
8 years, 2 months ago by xhwang
Modified:
8 years, 2 months ago
CC:
chromium-reviews, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Update PluginInstance for decrypt-and-decode video. - Hook up PpapiDecryptor and PluginInstance in terms of decrypt-and-decode calls. - Enable empty input buffer and empty video frame to be passed to/from the plugin. This is used for end-of-stream buffer/frames. - Add logs in DecryptingVideoDecoder. BUG=141780, 141784 TEST=Decrypt-and-decode of video is working with a fake video decoder in clearkey CDM. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=162657

Patch Set 1 #

Patch Set 2 : #

Total comments: 21

Patch Set 3 : Add todo about decrypt_cb_map. #

Total comments: 1

Patch Set 4 : resolve comments #

Patch Set 5 : a lot of change, need to be reviewed again #

Total comments: 27

Patch Set 6 : resolve ddorwin's comments #

Total comments: 10

Patch Set 7 : resolve comments #

Total comments: 2

Patch Set 8 : fix check on empty resource #

Total comments: 8

Patch Set 9 : resolve comments #

Patch Set 10 : fix a bug in ppp_content_decryptor_private_proxy.cc #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -84 lines) Patch
M media/filters/decrypting_video_decoder.cc View 1 2 3 4 5 11 chunks +12 lines, -1 line 0 comments Download
M ppapi/cpp/private/content_decryptor_private.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/ppp_content_decryptor_private_proxy.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -0 lines 1 comment Download
M webkit/media/crypto/ppapi/cdm_wrapper.cc View 1 2 3 4 5 3 chunks +17 lines, -8 lines 0 comments Download
M webkit/media/crypto/ppapi/clear_key_cdm.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M webkit/media/crypto/ppapi_decryptor.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/media/crypto/ppapi_decryptor.cc View 1 2 3 4 5 8 chunks +47 lines, -26 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 6 7 8 9 13 chunks +134 lines, -45 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
xhwang
I haven't added video decoder initialization because it's added in tomf's CL. PTAL! http://codereview.chromium.org/11091005/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc File ...
8 years, 2 months ago (2012-10-08 17:50:36 UTC) #1
ddorwin
I will review DeliverFrame() after discussing comments. http://codereview.chromium.org/11091005/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/11091005/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode460 webkit/plugins/ppapi/ppapi_plugin_instance.cc:460: pending_video_decode_request_id_(0) { ...
8 years, 2 months ago (2012-10-08 19:05:57 UTC) #2
xhwang
http://codereview.chromium.org/11091005/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/11091005/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode460 webkit/plugins/ppapi/ppapi_plugin_instance.cc:460: pending_video_decode_request_id_(0) { On 2012/10/08 19:05:57, ddorwin wrote: > Why ...
8 years, 2 months ago (2012-10-08 20:50:51 UTC) #3
ddorwin
I thought I had already sent this. Sorry. http://codereview.chromium.org/11091005/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/11091005/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode460 webkit/plugins/ppapi/ppapi_plugin_instance.cc:460: pending_video_decode_request_id_(0) ...
8 years, 2 months ago (2012-10-09 02:10:48 UTC) #4
Tom Finegan
Have not reviewed. I just wanted to answer xhwang's question. http://codereview.chromium.org/11091005/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/11091005/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode2375 ...
8 years, 2 months ago (2012-10-09 06:25:34 UTC) #5
xhwang
http://codereview.chromium.org/11091005/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/11091005/diff/2001/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode460 webkit/plugins/ppapi/ppapi_plugin_instance.cc:460: pending_video_decode_request_id_(0) { On 2012/10/09 02:10:48, ddorwin wrote: > On ...
8 years, 2 months ago (2012-10-09 22:29:32 UTC) #6
ddorwin
lgtm
8 years, 2 months ago (2012-10-10 07:08:32 UTC) #7
xhwang
David/Tom, This patch + my local fake clearkey video decoder = decrypt-and-decode video working Sorry ...
8 years, 2 months ago (2012-10-12 22:44:13 UTC) #8
brettw
Thanks, I'm removing myself to avoid inbox spam for now. When you're ready please just ...
8 years, 2 months ago (2012-10-12 23:22:53 UTC) #9
ddorwin
Nits and questions. http://codereview.chromium.org/11091005/diff/18010/media/filters/decrypting_video_decoder.cc File media/filters/decrypting_video_decoder.cc (right): http://codereview.chromium.org/11091005/diff/18010/media/filters/decrypting_video_decoder.cc#newcode165 media/filters/decrypting_video_decoder.cc:165: DVLOG(2) << "DoInitialize()"; Suggest eliminating the ...
8 years, 2 months ago (2012-10-13 01:40:27 UTC) #10
xhwang
ddorwin's comments resolved. PTAL! Sorry for the rebase noise. http://codereview.chromium.org/11091005/diff/18010/media/filters/decrypting_video_decoder.cc File media/filters/decrypting_video_decoder.cc (right): http://codereview.chromium.org/11091005/diff/18010/media/filters/decrypting_video_decoder.cc#newcode165 media/filters/decrypting_video_decoder.cc:165: ...
8 years, 2 months ago (2012-10-15 19:53:00 UTC) #11
Tom Finegan
Two nits, one issue. http://codereview.chromium.org/11091005/diff/24001/webkit/media/crypto/ppapi_decryptor.cc File webkit/media/crypto/ppapi_decryptor.cc (right): http://codereview.chromium.org/11091005/diff/24001/webkit/media/crypto/ppapi_decryptor.cc#newcode139 webkit/media/crypto/ppapi_decryptor.cc:139: return; nit: you don't need ...
8 years, 2 months ago (2012-10-15 21:26:30 UTC) #12
ddorwin
I have some comments in both patch versions. It sounds like there is a ref ...
8 years, 2 months ago (2012-10-15 23:31:38 UTC) #13
xhwang
http://codereview.chromium.org/11091005/diff/24001/webkit/media/crypto/ppapi_decryptor.cc File webkit/media/crypto/ppapi_decryptor.cc (right): http://codereview.chromium.org/11091005/diff/24001/webkit/media/crypto/ppapi_decryptor.cc#newcode139 webkit/media/crypto/ppapi_decryptor.cc:139: return; On 2012/10/15 23:31:38, ddorwin wrote: > On 2012/10/15 ...
8 years, 2 months ago (2012-10-16 00:20:24 UTC) #14
ddorwin
LGTM, but wait for Tom to review the refcount change. You can request OWNERS review ...
8 years, 2 months ago (2012-10-16 00:26:20 UTC) #15
xhwang
Hello brettw, Looks mostly good now. Could you please do an OWNERS review? Thanks! xhwang
8 years, 2 months ago (2012-10-16 00:29:10 UTC) #16
Tom Finegan
lgtm after one more fix... http://codereview.chromium.org/11091005/diff/18020/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/11091005/diff/18020/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode1660 webkit/plugins/ppapi/ppapi_plugin_instance.cc:1660: if (!encrypted_resource.get()) This check ...
8 years, 2 months ago (2012-10-16 00:38:05 UTC) #17
xhwang
Good catch! Thanks. http://codereview.chromium.org/11091005/diff/18020/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/11091005/diff/18020/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode1660 webkit/plugins/ppapi/ppapi_plugin_instance.cc:1660: if (!encrypted_resource.get()) On 2012/10/16 00:38:05, Tom ...
8 years, 2 months ago (2012-10-16 01:00:18 UTC) #18
xhwang
Hello viettrungluu, brettw@ is super busy. Could you please do an OWNER's review on those ...
8 years, 2 months ago (2012-10-17 18:25:39 UTC) #19
viettrungluu
http://codereview.chromium.org/11091005/diff/20011/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/11091005/diff/20011/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode1610 webkit/plugins/ppapi/ppapi_plugin_instance.cc:1610: DCHECK_EQ(pending_video_decoder_init_request_id_, 0u); InitializeVideoDecoder() is called by Chrome, right? (If ...
8 years, 2 months ago (2012-10-17 20:47:58 UTC) #20
xhwang
Thanks for the review! PTAL again. http://codereview.chromium.org/11091005/diff/20011/webkit/plugins/ppapi/ppapi_plugin_instance.cc File webkit/plugins/ppapi/ppapi_plugin_instance.cc (right): http://codereview.chromium.org/11091005/diff/20011/webkit/plugins/ppapi/ppapi_plugin_instance.cc#newcode1610 webkit/plugins/ppapi/ppapi_plugin_instance.cc:1610: DCHECK_EQ(pending_video_decoder_init_request_id_, 0u); On ...
8 years, 2 months ago (2012-10-17 21:11:54 UTC) #21
viettrungluu
Okay, let's put off moving stuff out for the moment (though let's get that done ...
8 years, 2 months ago (2012-10-17 22:15:55 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11091005/29001
8 years, 2 months ago (2012-10-17 22:21:26 UTC) #23
commit-bot: I haz the power
Retried try job too often for step(s) content_browsertests
8 years, 2 months ago (2012-10-18 00:25:09 UTC) #24
xhwang
Fixed a bug in ppp_content_decryptor_private_proxy.cc to allow 0 resource. PTAL! http://codereview.chromium.org/11091005/diff/33003/ppapi/proxy/ppp_content_decryptor_private_proxy.cc File ppapi/proxy/ppp_content_decryptor_private_proxy.cc (right): http://codereview.chromium.org/11091005/diff/33003/ppapi/proxy/ppp_content_decryptor_private_proxy.cc#newcode109 ...
8 years, 2 months ago (2012-10-18 01:17:04 UTC) #25
Tom Finegan (google)
lgtm
8 years, 2 months ago (2012-10-18 01:18:59 UTC) #26
viettrungluu
(still lgtm)
8 years, 2 months ago (2012-10-18 02:06:30 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11091005/33003
8 years, 2 months ago (2012-10-18 03:34:33 UTC) #28
commit-bot: I haz the power
8 years, 2 months ago (2012-10-18 07:02:27 UTC) #29
Change committed as 162657

Powered by Google App Engine
This is Rietveld 408576698