media: Forgo DecryptingAudioDecoder except for tests
DecryptingAudioDecoder was added to support decrypt-and-decode of audio buffers by a CDM using the Decryptor interface. Since then CDMs have evolved and today there's no CDM supporting this path in production. Though in browser tests, this paths is still used where the Clear Key CDM can decrypt-and-decode audio. This CL changes DefaultDecoderFactory such that by default DecryptingAudioDecoder will not be created except when External Clear Key is enabled, which typically is only set in browser tests. This will save an IPC round trip during initialization when playing media with encrypted audio, and hopefully will improve start-to-play time. Note that decrypt-and-decode of audio is supported on Android, but via MojoAudioDecoder directly, not through an explicit Decryptor interface. Bug: 846064 Test: browser tests still pass Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: Iffcbd488e613b63d50bf077dc27b4e5c4105adc3 Reviewed-on: https://chromium-review.googlesource.com/1070554Reviewed-by:John Rummell <jrummell@chromium.org> Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#561354}
Showing
Please register or sign in to comment