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

Issue 1423163004: media: Replace DecryptorReadyCB with CdmReadyCB. (Closed)

Created:
5 years, 1 month ago by xhwang
Modified:
5 years, 1 month ago
Reviewers:
*jrummell, ddorwin
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Replace DecryptorReadyCB with CdmReadyCB. The media pipeline on Android will need the CDM ID in the CdmContext instead of a Decryptor, which is used on Desktop. This CL makes the SetCdm() implementation more generic. BUG=545099 TEST=No functionality change. Committed: https://crrev.com/00f69db77f1088499192ff69d1fc5b271025bd9a Cr-Commit-Position: refs/heads/master@{#359278}

Patch Set 1 #

Patch Set 2 : fix android #

Patch Set 3 : fix android #

Total comments: 8

Patch Set 4 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+443 lines, -382 lines) Patch
M content/renderer/media/android/media_source_delegate.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M content/renderer/media/android/media_source_delegate.cc View 1 6 chunks +8 lines, -8 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.h View 1 2 2 chunks +10 lines, -7 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 chunks +49 lines, -51 lines 0 comments Download
M media/base/audio_renderer.h View 3 chunks +4 lines, -4 lines 0 comments Download
M media/base/cdm_context.h View 1 chunk +13 lines, -0 lines 0 comments Download
M media/base/decryptor.h View 1 chunk +0 lines, -18 lines 0 comments Download
M media/base/mock_filters.h View 4 chunks +16 lines, -2 lines 0 comments Download
M media/base/mock_filters.cc View 1 chunk +8 lines, -0 lines 0 comments Download
M media/base/video_renderer.h View 3 chunks +4 lines, -4 lines 0 comments Download
M media/filters/audio_decoder_selector_unittest.cc View 7 chunks +19 lines, -16 lines 0 comments Download
M media/filters/decoder_selector.h View 4 chunks +5 lines, -6 lines 0 comments Download
M media/filters/decoder_selector.cc View 5 chunks +7 lines, -7 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 4 chunks +5 lines, -5 lines 0 comments Download
M media/filters/decrypting_audio_decoder.h View 4 chunks +7 lines, -7 lines 0 comments Download
M media/filters/decrypting_audio_decoder.cc View 4 chunks +16 lines, -18 lines 0 comments Download
M media/filters/decrypting_audio_decoder_unittest.cc View 1 2 3 7 chunks +38 lines, -18 lines 0 comments Download
M media/filters/decrypting_demuxer_stream.h View 4 chunks +8 lines, -9 lines 0 comments Download
M media/filters/decrypting_demuxer_stream.cc View 6 chunks +16 lines, -18 lines 0 comments Download
M media/filters/decrypting_demuxer_stream_unittest.cc View 1 2 3 11 chunks +44 lines, -43 lines 0 comments Download
M media/filters/decrypting_video_decoder.h View 4 chunks +7 lines, -7 lines 0 comments Download
M media/filters/decrypting_video_decoder.cc View 4 chunks +16 lines, -18 lines 0 comments Download
M media/filters/decrypting_video_decoder_unittest.cc View 1 2 3 8 chunks +49 lines, -31 lines 0 comments Download
M media/filters/video_decoder_selector_unittest.cc View 6 chunks +20 lines, -16 lines 0 comments Download
M media/filters/video_frame_stream_unittest.cc View 10 chunks +40 lines, -34 lines 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 chunk +1 line, -1 line 0 comments Download
M media/renderers/renderer_impl.h View 2 chunks +6 lines, -6 lines 0 comments Download
M media/renderers/renderer_impl.cc View 4 chunks +12 lines, -15 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 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (6 generated)
xhwang
Please start from decryptor.h and cdm_context.h. The CL seems large but is pretty mechanical, with ...
5 years, 1 month ago (2015-11-11 00:06:36 UTC) #2
xhwang
+ddorwin for high level sanity check.
5 years, 1 month ago (2015-11-11 00:08:12 UTC) #6
jrummell
lgtm w/nits https://codereview.chromium.org/1423163004/diff/40001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/1423163004/diff/40001/content/renderer/media/android/webmediaplayer_android.cc#newcode195 content/renderer/media/android/webmediaplayer_android.cc:195: video_frame_provider_client_(NULL), Since you changed cdm_context_ to nullptr, ...
5 years, 1 month ago (2015-11-12 00:23:07 UTC) #7
xhwang
comments addressed
5 years, 1 month ago (2015-11-12 06:26:36 UTC) #8
xhwang
https://chromiumcodereview.appspot.com/1423163004/diff/40001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://chromiumcodereview.appspot.com/1423163004/diff/40001/content/renderer/media/android/webmediaplayer_android.cc#newcode195 content/renderer/media/android/webmediaplayer_android.cc:195: video_frame_provider_client_(NULL), On 2015/11/12 00:23:06, jrummell wrote: > Since you ...
5 years, 1 month ago (2015-11-12 06:28:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1423163004/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1423163004/60001
5 years, 1 month ago (2015-11-12 06:48:06 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-12 07:32:48 UTC) #13
commit-bot: I haz the power
5 years, 1 month ago (2015-11-12 20:05:43 UTC) #14
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/00f69db77f1088499192ff69d1fc5b271025bd9a
Cr-Commit-Position: refs/heads/master@{#359278}

Powered by Google App Engine
This is Rietveld 408576698