|
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}
Total comments: 4
Total comments: 2
|
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
|
Total messages: 24 (12 generated)
|