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

Issue 1666653002: media: Remove SetCdmReadyCB and CdmReadyCB (part 1). (Closed)

Created:
4 years, 10 months ago by xhwang
Modified:
4 years, 10 months ago
Reviewers:
*jrummell, DaleCurtis
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, feature-media-reviews_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Remove SetCdmReadyCB and CdmReadyCB (part 1). RendererImpl and MediaSourceDelegate wait for CDM to be available to start initialization if any stream is encrypted. Since CDM is available, we can simply pass the CdmContext down and thus avoid the SetCdmReadyCB/CdmReadyCB/SetCdm round trip. Also decoder initialization will not be associated with CdmAttachedCB any more. Instead, we'll only handle it in RendererImpl and MediaSourceDelegate based on the result of audio and video Renderer/Decoder/DecryptingDemuxerStream initialization. This CL is part 1 where all decoders/renderers are fixed. In the next CL (part 2), DecryptingDemuxerStream and MediaSourceDelegate will be fixed. TBR=alokp@chromium.org,bbudge@chromium.org BUG=580250 TEST=Updated unittests. Committed: https://crrev.com/a935e44754f619957614ff16a98c1e9c73783676 Cr-Commit-Position: refs/heads/master@{#374835}

Patch Set 1 #

Total comments: 4

Patch Set 2 : DDS dropped; tests fixed. #

Patch Set 3 : Fix chromecast #

Patch Set 4 : Add TODO. #

Patch Set 5 : fix video_encode_accelerator_unittest.cc #

Patch Set 6 : Add RendererImplTests for SetCdm(). #

Total comments: 2

Patch Set 7 : remove log #

Patch Set 8 : rebase and fix compile errors #

Unified diffs Side-by-side diffs Delta from patch set Stats (+386 lines, -571 lines) Patch
M chromecast/media/cma/decoder/cast_audio_decoder_linux.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M content/common/gpu/media/video_encode_accelerator_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/video_decoder_shim.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/base/audio_decoder.h View 1 3 chunks +8 lines, -10 lines 0 comments Download
M media/base/audio_renderer.h View 3 chunks +4 lines, -4 lines 0 comments Download
M media/base/mock_filters.h View 4 chunks +4 lines, -4 lines 0 comments Download
M media/base/test_helpers.h View 1 1 chunk +0 lines, -13 lines 0 comments Download
M media/base/test_helpers.cc View 1 1 chunk +0 lines, -17 lines 0 comments Download
M media/base/video_decoder.h View 3 chunks +4 lines, -5 lines 0 comments Download
M media/base/video_renderer.h View 3 chunks +4 lines, -4 lines 0 comments Download
M media/cast/sender/h264_vt_encoder_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/android/media_codec_audio_decoder.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/filters/android/media_codec_audio_decoder.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/filters/audio_decoder_selector_unittest.cc View 1 9 chunks +19 lines, -63 lines 0 comments Download
M media/filters/audio_decoder_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/decoder_selector.h View 1 5 chunks +11 lines, -4 lines 0 comments Download
M media/filters/decoder_selector.cc View 1 7 chunks +19 lines, -6 lines 0 comments Download
M media/filters/decoder_stream.h View 4 chunks +5 lines, -3 lines 0 comments Download
M media/filters/decoder_stream.cc View 1 6 chunks +9 lines, -9 lines 0 comments Download
M media/filters/decoder_stream_traits.h View 3 chunks +3 lines, -2 lines 0 comments Download
M media/filters/decoder_stream_traits.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M media/filters/decrypting_audio_decoder.h View 1 4 chunks +1 line, -9 lines 0 comments Download
M media/filters/decrypting_audio_decoder.cc View 1 6 chunks +15 lines, -35 lines 0 comments Download
M media/filters/decrypting_audio_decoder_unittest.cc View 1 5 chunks +7 lines, -34 lines 0 comments Download
M media/filters/decrypting_video_decoder.h View 4 chunks +1 line, -9 lines 0 comments Download
M media/filters/decrypting_video_decoder.cc View 1 5 chunks +16 lines, -40 lines 0 comments Download
M media/filters/decrypting_video_decoder_unittest.cc View 1 4 chunks +8 lines, -58 lines 0 comments Download
M media/filters/fake_video_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/fake_video_decoder.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/fake_video_decoder_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_audio_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M media/filters/gpu_video_decoder.h View 3 chunks +1 line, -9 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 5 chunks +12 lines, -30 lines 0 comments Download
M media/filters/opus_audio_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/opus_audio_decoder.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/video_decoder_selector_unittest.cc View 1 2 3 4 5 6 8 chunks +18 lines, -63 lines 0 comments Download
M media/filters/video_frame_stream_unittest.cc View 1 10 chunks +4 lines, -53 lines 0 comments Download
M media/filters/vpx_video_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/vpx_video_decoder.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/audio_renderer_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/renderers/audio_renderer_impl_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/renderer_impl.h View 1 3 chunks +6 lines, -14 lines 0 comments Download
M media/renderers/renderer_impl.cc View 1 12 chunks +47 lines, -30 lines 0 comments Download
M media/renderers/renderer_impl_unittest.cc View 1 2 3 4 5 9 chunks +129 lines, -10 lines 0 comments Download
M media/renderers/video_renderer_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M media/renderers/video_renderer_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M media/renderers/video_renderer_impl_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (12 generated)
xhwang
This CL is still WIP. Now all encrypted-media layout tests pass, and some EME test ...
4 years, 10 months ago (2016-02-03 07:35:24 UTC) #3
jrummell
LG https://codereview.chromium.org/1666653002/diff/1/media/filters/decrypting_audio_decoder.cc File media/filters/decrypting_audio_decoder.cc (right): https://codereview.chromium.org/1666653002/diff/1/media/filters/decrypting_audio_decoder.cc#newcode85 media/filters/decrypting_audio_decoder.cc:85: base::ResetAndReturn(&init_cb_).Run(false); In SetCdm() state_ was set to kError. ...
4 years, 10 months ago (2016-02-03 23:32:28 UTC) #4
xhwang
PTAL again! https://chromiumcodereview.appspot.com/1666653002/diff/1/media/filters/decrypting_audio_decoder.cc File media/filters/decrypting_audio_decoder.cc (right): https://chromiumcodereview.appspot.com/1666653002/diff/1/media/filters/decrypting_audio_decoder.cc#newcode85 media/filters/decrypting_audio_decoder.cc:85: base::ResetAndReturn(&init_cb_).Run(false); On 2016/02/03 23:32:28, jrummell wrote: > ...
4 years, 10 months ago (2016-02-09 22:23:58 UTC) #6
xhwang
s/ddorwin/dalecurtis since ddorwin is OOO and this change is more in the media stack than ...
4 years, 10 months ago (2016-02-10 17:10:48 UTC) #8
DaleCurtis
lgtm % nit https://chromiumcodereview.appspot.com/1666653002/diff/100001/media/filters/video_decoder_selector_unittest.cc File media/filters/video_decoder_selector_unittest.cc (right): https://chromiumcodereview.appspot.com/1666653002/diff/100001/media/filters/video_decoder_selector_unittest.cc#newcode72 media/filters/video_decoder_selector_unittest.cc:72: LOG(ERROR) << __FUNCTION__; Remove?
4 years, 10 months ago (2016-02-10 18:01:54 UTC) #9
jrummell
lgtm
4 years, 10 months ago (2016-02-10 22:28:02 UTC) #10
xhwang
TBRing alokp@chromium.org and bbudge@chromium.org for trivial changes in chromecast/media/cma/decoder/cast_audio_decoder_linux.cc and content/renderer/pepper/video_decoder_shim.cc. https://codereview.chromium.org/1666653002/diff/100001/media/filters/video_decoder_selector_unittest.cc File media/filters/video_decoder_selector_unittest.cc (right): ...
4 years, 10 months ago (2016-02-10 22:35:56 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1666653002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1666653002/120001
4 years, 10 months ago (2016-02-10 22:44:46 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/20341)
4 years, 10 months ago (2016-02-10 23:10:43 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1666653002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1666653002/140001
4 years, 10 months ago (2016-02-11 01:03:48 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 10 months ago (2016-02-11 02:23:02 UTC) #22
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:34:02 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/a935e44754f619957614ff16a98c1e9c73783676
Cr-Commit-Position: refs/heads/master@{#374835}

Powered by Google App Engine
This is Rietveld 408576698