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

Issue 1690063002: Fix mime type mappings when the unified media pipeline is enabled. (Closed)

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

Description

Fix mime type mappings when the unified media pipeline is enabled. Enables codecs which are supported by the unified media pipeline when enabled. Removes unnecessary compile time restrictions on the codecs supported on Android. Additional notes: - Fixes VP8 codecs being included when they should be blacklisted. - Fixes VP9 codecs being included when the platform doesn't support them. - Fixes MSE continuing to be disabled when supported by the unified pipeline. BUG=559236, 582548 TEST=new mime util tests. Committed: https://crrev.com/88af393b8b7cc535978f95f32e8c83b5e83f4ebc Cr-Commit-Position: refs/heads/master@{#376571}

Patch Set 1 #

Patch Set 2 : Include MSE fixes. #

Total comments: 12

Patch Set 3 : Fix browser tests. #

Total comments: 24

Patch Set 4 : Fix all teh things. #

Total comments: 58

Patch Set 5 : Simplify, test, rebase on split. #

Total comments: 91

Patch Set 6 : Comments. #

Total comments: 50

Patch Set 7 : Comments #

Total comments: 15

Patch Set 8 : Comments. Fix vp8 inversion. Fix vp9 exclusion. Fix hevc. #

Total comments: 3

Patch Set 9 : Avoid MSE being enabled via experiment. #

Patch Set 10 : Fix compile error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+703 lines, -161 lines) Patch
M content/child/runtime_features.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M content/common/gpu/media/android_video_decode_accelerator.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -8 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 3 chunks +16 lines, -47 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 2 chunks +8 lines, -0 lines 0 comments Download
M media/base/android/java/src/org/chromium/media/MediaCodecUtil.java View 1 2 3 2 chunks +8 lines, -2 lines 0 comments Download
M media/base/android/media_codec_util.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M media/base/android/media_codec_util.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M media/base/media.h View 1 2 3 4 5 2 chunks +28 lines, -0 lines 0 comments Download
M media/base/media.cc View 1 2 3 4 5 6 7 8 9 4 chunks +60 lines, -4 lines 0 comments Download
M media/base/mime_util.h View 1 2 3 4 2 chunks +10 lines, -8 lines 0 comments Download
M media/base/mime_util.cc View 1 2 3 4 1 chunk +9 lines, -1 line 0 comments Download
M media/base/mime_util_internal.h View 1 2 3 4 5 6 7 chunks +51 lines, -19 lines 0 comments Download
M media/base/mime_util_internal.cc View 1 2 3 4 5 6 7 11 chunks +161 lines, -64 lines 0 comments Download
M media/base/mime_util_unittest.cc View 1 2 3 4 5 6 7 2 chunks +301 lines, -0 lines 0 comments Download
M media/blink/key_system_config_selector.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M media/filters/stream_parser_factory.cc View 1 2 3 4 5 6 7 3 chunks +22 lines, -5 lines 0 comments Download

Messages

Total messages: 59 (24 generated)
DaleCurtis
4 years, 10 months ago (2016-02-11 20:15:01 UTC) #2
ncarter (slow)
lgtm
4 years, 10 months ago (2016-02-11 20:43:04 UTC) #3
ddorwin
https://codereview.chromium.org/1690063002/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1690063002/diff/20001/content/renderer/render_frame_impl.cc#newcode2501 content/renderer/render_frame_impl.cc:2501: if (media::IsUnifiedMediaPipelineEnabled()) Is this logic backwards? https://codereview.chromium.org/1690063002/diff/20001/media/base/mime_util.cc File media/base/mime_util.cc ...
4 years, 10 months ago (2016-02-11 21:08:24 UTC) #4
DaleCurtis
Resolved most comments, one question on refactoring. https://codereview.chromium.org/1690063002/diff/20001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1690063002/diff/20001/content/renderer/render_frame_impl.cc#newcode2501 content/renderer/render_frame_impl.cc:2501: if (media::IsUnifiedMediaPipelineEnabled()) ...
4 years, 10 months ago (2016-02-11 22:04:54 UTC) #5
ddorwin
https://codereview.chromium.org/1690063002/diff/20001/media/filters/stream_parser_factory.cc File media/filters/stream_parser_factory.cc (right): https://codereview.chromium.org/1690063002/diff/20001/media/filters/stream_parser_factory.cc#newcode334 media/filters/stream_parser_factory.cc:334: // VP9 is only supported on KitKat+ (API Level ...
4 years, 10 months ago (2016-02-12 18:45:12 UTC) #6
DaleCurtis
Okay this cleans everything up as discussed, though the logic is still quite complicated. I'll ...
4 years, 10 months ago (2016-02-13 02:01:43 UTC) #9
DaleCurtis
https://codereview.chromium.org/1690063002/diff/80001/media/base/media.cc File media/base/media.cc (right): https://codereview.chromium.org/1690063002/diff/80001/media/base/media.cc#newcode105 media/base/media.cc:105: return IsUnifiedMediaPipelineEnabled() || Just realized this part is wrong. ...
4 years, 10 months ago (2016-02-13 05:54:28 UTC) #10
ddorwin
Thanks. This is complex. https://codereview.chromium.org/1690063002/diff/80001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/1690063002/diff/80001/content/renderer/render_frame_impl.cc#newcode760 content/renderer/render_frame_impl.cc:760: // Don't use WMPI if ...
4 years, 10 months ago (2016-02-16 20:34:37 UTC) #11
DaleCurtis
PTAL. Thanks for the detailed review. Now includes 200+ lines of tests :) https://codereview.chromium.org/1690063002/diff/80001/content/renderer/render_frame_impl.cc File ...
4 years, 10 months ago (2016-02-17 03:01:06 UTC) #16
ddorwin
Thanks for refactoring. This is easier to follow. Mostly minor stuff and nits. https://codereview.chromium.org/1690063002/diff/80001/media/base/mime_util.cc File ...
4 years, 10 months ago (2016-02-17 21:18:40 UTC) #19
DaleCurtis
Thanks for the thorough review. All comments should be addressed! https://codereview.chromium.org/1690063002/diff/170001/media/base/android/media_codec_util.h File media/base/android/media_codec_util.h (right): https://codereview.chromium.org/1690063002/diff/170001/media/base/android/media_codec_util.h#newcode70 ...
4 years, 10 months ago (2016-02-18 03:58:10 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690063002/210001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690063002/210001
4 years, 10 months ago (2016-02-18 04:03:24 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/23423)
4 years, 10 months ago (2016-02-18 04:18:16 UTC) #25
ddorwin
Thanks. Getting closer. :) One refactoring suggestion. https://codereview.chromium.org/1690063002/diff/170001/media/base/mime_util_internal.h File media/base/mime_util_internal.h (right): https://codereview.chromium.org/1690063002/diff/170001/media/base/mime_util_internal.h#newcode73 media/base/mime_util_internal.h:73: void SetPlatformCodecInfoForTests(const ...
4 years, 10 months ago (2016-02-18 20:37:45 UTC) #26
DaleCurtis
https://codereview.chromium.org/1690063002/diff/210001/media/base/mime_util_internal.cc File media/base/mime_util_internal.cc (right): https://codereview.chromium.org/1690063002/diff/210001/media/base/mime_util_internal.cc#newcode276 media/base/mime_util_internal.cc:276: : MediaCodecUtil::IsMediaCodecAvailable(); On 2016/02/18 20:37:44, ddorwin wrote: > Why ...
4 years, 10 months ago (2016-02-19 01:35:47 UTC) #27
DaleCurtis
+sandersd to double check my logic changes in RenderFrameImpl. They seem correct :) nick@ I've ...
4 years, 10 months ago (2016-02-19 01:37:06 UTC) #29
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690063002/230001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690063002/230001
4 years, 10 months ago (2016-02-19 01:38:26 UTC) #31
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/118171)
4 years, 10 months ago (2016-02-19 02:24:33 UTC) #33
DaleCurtis
Whoops, inverted vp8 checks. Going to rename the method to IsVp8DecoderAvailable(). Will upload after the ...
4 years, 10 months ago (2016-02-19 19:21:56 UTC) #34
ddorwin
LG other than logic inversion and a few comments. https://codereview.chromium.org/1690063002/diff/230001/media/base/android/media_codec_util.cc File media/base/android/media_codec_util.cc (right): https://codereview.chromium.org/1690063002/diff/230001/media/base/android/media_codec_util.cc#newcode250 media/base/android/media_codec_util.cc:250: ...
4 years, 10 months ago (2016-02-19 19:53:23 UTC) #35
DaleCurtis
Thanks for the review, this passes all tests locally! https://codereview.chromium.org/1690063002/diff/230001/media/base/android/media_codec_util.cc File media/base/android/media_codec_util.cc (right): https://codereview.chromium.org/1690063002/diff/230001/media/base/android/media_codec_util.cc#newcode250 media/base/android/media_codec_util.cc:250: ...
4 years, 10 months ago (2016-02-19 20:28:35 UTC) #37
DaleCurtis
This is how I feel about this patch: http://i.imgur.com/k0p1C2q.gif
4 years, 10 months ago (2016-02-19 20:29:15 UTC) #38
DaleCurtis
On 2016/02/19 at 20:29:15, DaleCurtis wrote: > This is how I feel about this patch: ...
4 years, 10 months ago (2016-02-19 20:29:59 UTC) #39
ddorwin
I don't have a gifv, but 👍. LGTM. Thank you! https://codereview.chromium.org/1690063002/diff/230001/media/base/android/media_codec_util.cc File media/base/android/media_codec_util.cc (right): https://codereview.chromium.org/1690063002/diff/230001/media/base/android/media_codec_util.cc#newcode250 ...
4 years, 10 months ago (2016-02-19 20:47:00 UTC) #40
ncarter (slow)
On 2016/02/19 20:29:59, DaleCurtis wrote: > On 2016/02/19 at 20:29:15, DaleCurtis wrote: > > This ...
4 years, 10 months ago (2016-02-19 20:50:40 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690063002/250001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690063002/250001
4 years, 10 months ago (2016-02-19 21:04:00 UTC) #43
sandersd (OOO until July 31)
https://codereview.chromium.org/1690063002/diff/250001/media/base/media.cc File media/base/media.cc (right): https://codereview.chromium.org/1690063002/diff/250001/media/base/media.cc#newcode111 media/base/media.cc:111: return IsUnifiedMediaPipelineEnabled() || We should probably rely on the ...
4 years, 10 months ago (2016-02-19 21:07:12 UTC) #44
DaleCurtis
https://codereview.chromium.org/1690063002/diff/250001/media/base/media.cc File media/base/media.cc (right): https://codereview.chromium.org/1690063002/diff/250001/media/base/media.cc#newcode111 media/base/media.cc:111: return IsUnifiedMediaPipelineEnabled() || On 2016/02/19 at 21:07:12, sandersd wrote: ...
4 years, 10 months ago (2016-02-19 21:09:55 UTC) #45
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690063002/270001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690063002/270001
4 years, 10 months ago (2016-02-19 21:42:58 UTC) #47
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690063002/290001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690063002/290001
4 years, 10 months ago (2016-02-19 22:07:33 UTC) #50
sandersd (OOO until July 31)
lgtm
4 years, 10 months ago (2016-02-19 23:24:52 UTC) #51
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-19 23:24:53 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1690063002/290001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1690063002/290001
4 years, 10 months ago (2016-02-19 23:28:03 UTC) #56
commit-bot: I haz the power
Committed patchset #10 (id:290001)
4 years, 10 months ago (2016-02-20 00:12:33 UTC) #57
commit-bot: I haz the power
4 years, 10 months ago (2016-02-20 00:13:55 UTC) #59
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/88af393b8b7cc535978f95f32e8c83b5e83f4ebc
Cr-Commit-Position: refs/heads/master@{#376571}

Powered by Google App Engine
This is Rietveld 408576698