Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(488)

Issue 1717933002: media: Support MojoAudioDecoder. (Closed)

Created:
4 years, 10 months ago by xhwang
Modified:
4 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, Tima Vaisburd, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Support MojoAudioDecoder. Details: - Support mojo audio decoder in gn args. - Add DecoderFactory to help create external decoders. - Add MojoDecoderFactory that can create MojoAudioDecoder. - When mojo audio decoder is enabled, enable MojoDecoderFactory. In the next CL we'll add mojo audio decoder interface and services. We'll also add real implementation of MojoAudioDecoder. To test this on Desktop, set the following gn arguments: enable_mojo_media = true mojo_media_services = [ "audio_decoder" ] Then in DecoderSelector, manually disable DecryptingAudioDecoder and DecryptingDemuxerStream. Now try to play an encrypted audio, MojoAudioDecoder should be selected. But it'll fail immediately in the first Decode() call. BUG=542910 TEST=See above. Committed: https://crrev.com/409e5355ae1269cde51dc5b73b4592bad4e8c2ea Cr-Commit-Position: refs/heads/master@{#376878}

Patch Set 1 #

Patch Set 2 : nogncheck #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+305 lines, -19 lines) Patch
M content/renderer/render_frame_impl.h View 3 chunks +4 lines, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 4 chunks +16 lines, -1 line 0 comments Download
M media/base/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A media/base/decoder_factory.h View 1 chunk +35 lines, -0 lines 0 comments Download
A media/base/decoder_factory.cc View 1 chunk +19 lines, -0 lines 0 comments Download
M media/media.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M media/media_options.gni View 2 chunks +7 lines, -2 lines 2 comments Download
M media/mojo/services/BUILD.gn View 2 chunks +6 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_audio_decoder.h View 1 chunk +43 lines, -0 lines 4 comments Download
A media/mojo/services/mojo_audio_decoder.cc View 1 chunk +60 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_decoder_factory.h View 1 chunk +34 lines, -0 lines 0 comments Download
A media/mojo/services/mojo_decoder_factory.cc View 1 chunk +26 lines, -0 lines 0 comments Download
M media/mojo/services/test_mojo_media_client.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/renderers/default_renderer_factory.h View 2 chunks +15 lines, -0 lines 0 comments Download
M media/renderers/default_renderer_factory.cc View 4 chunks +34 lines, -13 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
xhwang
rebase only
4 years, 10 months ago (2016-02-20 07:39:48 UTC) #1
xhwang
dalecurtis: PTAL timav: FYI
4 years, 10 months ago (2016-02-20 07:44:05 UTC) #4
DaleCurtis
lgtm https://codereview.chromium.org/1717933002/diff/40001/media/media_options.gni File media/media_options.gni (right): https://codereview.chromium.org/1717933002/diff/40001/media/media_options.gni#newcode91 media/media_options.gni:91: # Renderer. Cannot be used with the mojo ...
4 years, 10 months ago (2016-02-22 19:20:49 UTC) #5
Tima Vaisburd
https://codereview.chromium.org/1717933002/diff/40001/media/mojo/services/mojo_audio_decoder.h File media/mojo/services/mojo_audio_decoder.h (right): https://codereview.chromium.org/1717933002/diff/40001/media/mojo/services/mojo_audio_decoder.h#newcode33 media/mojo/services/mojo_audio_decoder.h:33: bool NeedsBitstreamConversion() const final; NeedsBistreamConversion() is not pure virtual ...
4 years, 10 months ago (2016-02-22 19:31:57 UTC) #7
xhwang
https://codereview.chromium.org/1717933002/diff/40001/media/media_options.gni File media/media_options.gni (right): https://codereview.chromium.org/1717933002/diff/40001/media/media_options.gni#newcode91 media/media_options.gni:91: # Renderer. Cannot be used with the mojo Renderer ...
4 years, 10 months ago (2016-02-22 22:33:07 UTC) #8
xhwang
jam: Please OWNERS review content/renderer/render_frame_impl.* Sorry for adding more media stuff in this file :) ...
4 years, 10 months ago (2016-02-22 22:36:05 UTC) #11
xhwang
(oops, really add jam@ this time) jam: Please OWNERS review content/renderer/render_frame_impl.* Sorry for adding more ...
4 years, 10 months ago (2016-02-22 22:36:39 UTC) #13
jam
lgtm
4 years, 10 months ago (2016-02-22 23:30:13 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1717933002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1717933002/40001
4 years, 10 months ago (2016-02-22 23:33:26 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 10 months ago (2016-02-23 00:52:51 UTC) #17
commit-bot: I haz the power
4 years, 10 months ago (2016-02-23 00:55:02 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/409e5355ae1269cde51dc5b73b4592bad4e8c2ea
Cr-Commit-Position: refs/heads/master@{#376878}

Powered by Google App Engine
This is Rietveld 408576698