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

Issue 1469353010: Configure MediaCodec with CDM in ADVA (Closed)

Created:
5 years ago by Tima Vaisburd
Modified:
4 years, 10 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Configure MediaCodec with CDM in ADVA Implemented SetCdm() by retrieving the CDM object from mojo (it should be MediaDrmBridge), registering this bridge with nesessary callbacks and postponing the MediaCodec configuration till we get the MediaCrypto object. After MediaCrypto object is obtained we configure MediaCodec and only then report the SetCdm() status by NotifyCdmAttached(bool). With this approach any failure in MediaCodec creation is reported as a CDM failure. BUG=542417 Committed: https://crrev.com/39cbd4546d7a6300afde7e8c1816541323a1abb5 Cr-Commit-Position: refs/heads/master@{#368679}

Patch Set 1 #

Patch Set 2 : Added the handling of NO_KEY error #

Total comments: 30

Patch Set 3 : Rebased, fail if we need protected surface #

Patch Set 4 : Addressed some comments #

Total comments: 6

Patch Set 5 : Passed needs_protected_surface to codec configuration, addressed comments #

Total comments: 2

Patch Set 6 : Rebase, used std::move, added VDA::Config::AsHumanReadableString #

Total comments: 8

Patch Set 7 : Made separate functions GetCodecName() and GetProfileName() and used them #

Patch Set 8 : Fixed component build #

Patch Set 9 : Rebased #

Patch Set 10 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -151 lines) Patch
M content/common/gpu/media/android_video_decode_accelerator.h View 1 2 3 4 5 6 7 8 9 4 chunks +25 lines, -0 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 9 10 chunks +120 lines, -17 lines 0 comments Download
M media/base/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/android/demuxer_stream_player_params.cc View 1 2 3 4 5 6 7 8 9 4 chunks +2 lines, -49 lines 0 comments Download
M media/base/audio_decoder_config.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/audio_decoder_config.cc View 1 2 3 4 5 6 7 8 9 2 chunks +44 lines, -44 lines 0 comments Download
M media/base/video_codecs.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download
A media/base/video_codecs.cc View 1 2 3 4 5 6 1 chunk +72 lines, -0 lines 0 comments Download
M media/base/video_decoder_config.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/video_decoder_config.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -37 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M media/video/video_decode_accelerator.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M media/video/video_decode_accelerator.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (17 generated)
Tima Vaisburd
PTAL
5 years ago (2015-12-04 00:41:54 UTC) #5
liberato (no reviews please)
overall looks good. also adding watk to see how this fits with the full screen ...
5 years ago (2015-12-04 16:20:11 UTC) #7
Tima Vaisburd
https://codereview.chromium.org/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc File content/common/gpu/media/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc#newcode151 content/common/gpu/media/android_video_decode_accelerator.cc:151: surface_texture_ = strategy_->CreateSurfaceTexture(); On 2015/12/04 16:20:11, liberato wrote: > ...
5 years ago (2015-12-04 20:12:01 UTC) #9
xhwang
https://chromiumcodereview.appspot.com/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc File content/common/gpu/media/android_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc#newcode161 content/common/gpu/media/android_video_decode_accelerator.cc:161: void AndroidVideoDecodeAccelerator::SetCdm(int cdm_id) { This should only be called ...
5 years ago (2015-12-04 20:22:03 UTC) #10
liberato (no reviews please)
lgtm https://codereview.chromium.org/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc File content/common/gpu/media/android_video_decode_accelerator.cc (right): https://codereview.chromium.org/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc#newcode151 content/common/gpu/media/android_video_decode_accelerator.cc:151: surface_texture_ = strategy_->CreateSurfaceTexture(); On 2015/12/04 20:12:01, Tima Vaisburd ...
5 years ago (2015-12-04 21:40:13 UTC) #11
Tima Vaisburd
https://chromiumcodereview.appspot.com/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc File content/common/gpu/media/android_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc#newcode161 content/common/gpu/media/android_video_decode_accelerator.cc:161: void AndroidVideoDecodeAccelerator::SetCdm(int cdm_id) { On 2015/12/04 21:40:13, liberato wrote: ...
5 years ago (2015-12-04 22:54:51 UTC) #12
xhwang
https://chromiumcodereview.appspot.com/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc File content/common/gpu/media/android_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc#newcode291 content/common/gpu/media/android_video_decode_accelerator.cc:291: return; // keep trying to enqueue the front pending ...
5 years ago (2015-12-04 23:24:09 UTC) #13
Tima Vaisburd
https://chromiumcodereview.appspot.com/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc File content/common/gpu/media/android_video_decode_accelerator.cc (right): https://chromiumcodereview.appspot.com/1469353010/diff/20001/content/common/gpu/media/android_video_decode_accelerator.cc#newcode291 content/common/gpu/media/android_video_decode_accelerator.cc:291: return; // keep trying to enqueue the front pending ...
5 years ago (2015-12-05 01:35:25 UTC) #14
xhwang
LGTM Please hold off before the MediaCrypto creation refactoring CL is landed. Thanks! https://chromiumcodereview.appspot.com/1469353010/diff/80001/content/common/gpu/media/android_video_decode_accelerator.cc File ...
5 years ago (2015-12-05 06:22:26 UTC) #15
Tima Vaisburd
Since I added Config::AsHumanReadableString() which required a human readable string for the video profile I'm ...
5 years ago (2015-12-07 21:28:26 UTC) #16
xhwang
https://chromiumcodereview.appspot.com/1469353010/diff/100001/media/base/video_decoder_config.cc File media/base/video_decoder_config.cc (right): https://chromiumcodereview.appspot.com/1469353010/diff/100001/media/base/video_decoder_config.cc#newcode147 media/base/video_decoder_config.cc:147: // media/base/video_codecs.h If you move this to media/base/video_codecs.h then ...
5 years ago (2015-12-07 22:14:15 UTC) #17
Tima Vaisburd
https://codereview.chromium.org/1469353010/diff/100001/media/base/video_decoder_config.cc File media/base/video_decoder_config.cc (right): https://codereview.chromium.org/1469353010/diff/100001/media/base/video_decoder_config.cc#newcode147 media/base/video_decoder_config.cc:147: // media/base/video_codecs.h On 2015/12/07 22:14:15, xhwang wrote: > If ...
5 years ago (2015-12-08 02:12:24 UTC) #18
xhwang
Thanks for the cleanup. LGTM++
5 years ago (2015-12-08 04:58:47 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469353010/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469353010/160001
4 years, 11 months ago (2016-01-09 00:03:46 UTC) #22
Tima Vaisburd
Dale, Pawel, need your approval as well. Please take a look.
4 years, 11 months ago (2016-01-09 00:34:43 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/133933)
4 years, 11 months ago (2016-01-09 00:36:15 UTC) #26
DaleCurtis
=>sandersd
4 years, 11 months ago (2016-01-09 00:36:31 UTC) #28
sandersd (OOO until July 31)
RS LGTM for content/common/gpu/media.
4 years, 11 months ago (2016-01-11 19:55:06 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469353010/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469353010/160001
4 years, 11 months ago (2016-01-11 20:01:11 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/6716) cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, ...
4 years, 11 months ago (2016-01-11 20:12:49 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469353010/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469353010/180001
4 years, 11 months ago (2016-01-11 20:35:54 UTC) #36
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 11 months ago (2016-01-11 21:48:19 UTC) #38
commit-bot: I haz the power
4 years, 11 months ago (2016-01-11 21:49:29 UTC) #40
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/39cbd4546d7a6300afde7e8c1816541323a1abb5
Cr-Commit-Position: refs/heads/master@{#368679}

Powered by Google App Engine
This is Rietveld 408576698