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

Issue 1235793005: Deprecate LogCB in favor of using MediaLog (Closed)

Created:
5 years, 5 months ago by wolenetz
Modified:
5 years, 5 months ago
Reviewers:
chcunningham, xhwang, gunsch
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, jshin+watch_chromium.org, mkwst+moarreviews-renderer_chromium.org, wjia+watch_chromium.org, mlamouri+watch-media_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Deprecate LogCB in favor of using MediaLog Now that MEDIA_LOG macros work with a MediaLog, and having a MediaLog object is needed to log events like property changes (not just strings), this CL replaces usage of bound LogCB with actual MediaLog object throughout //media. It also removes LogCB. BUG=499628 R=xhwang@chromium.org,chcunningham@chromium.org,gunsch@chromium.org TEST=No media unittest or layout test regression locally on linux with proprietary codecs including mp2t enabled Committed: https://crrev.com/1fb319dc2cfe72901db6303c37a38b0f6010adf9 Cr-Commit-Position: refs/heads/master@{#338710}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Remove the accidentally included pieces of followup CL #

Total comments: 7

Patch Set 3 : Address comments and attempt to fix Android compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+534 lines, -619 lines) Patch
M content/renderer/media/android/media_source_delegate.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M media/base/media_log.h View 3 chunks +6 lines, -13 lines 0 comments Download
M media/base/media_log.cc View 1 2 1 chunk +2 lines, -8 lines 0 comments Download
M media/base/stream_parser.h View 1 chunk +1 line, -1 line 0 comments Download
M media/base/test_helpers.h View 1 chunk +0 lines, -5 lines 0 comments Download
M media/base/test_helpers.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M media/blink/webmediaplayer_impl.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M media/blink/webmediasource_impl.h View 2 chunks +3 lines, -2 lines 0 comments Download
M media/blink/webmediasource_impl.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M media/filters/audio_decoder_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/filters/chunk_demuxer.h View 3 chunks +12 lines, -10 lines 0 comments Download
M media/filters/chunk_demuxer.cc View 24 chunks +41 lines, -45 lines 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/filters/ffmpeg_audio_decoder.cc View 3 chunks +7 lines, -6 lines 0 comments Download
M media/filters/frame_processor_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M media/filters/source_buffer_stream.h View 1 2 chunks +6 lines, -6 lines 0 comments Download
M media/filters/source_buffer_stream.cc View 1 9 chunks +21 lines, -18 lines 0 comments Download
M media/filters/source_buffer_stream_unittest.cc View 7 chunks +6 lines, -8 lines 0 comments Download
M media/filters/stream_parser_factory.h View 2 chunks +7 lines, -4 lines 0 comments Download
M media/filters/stream_parser_factory.cc View 17 chunks +36 lines, -38 lines 0 comments Download
M media/formats/common/stream_parser_test_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/formats/mp2t/es_parser_mpeg1audio.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/formats/mp2t/es_parser_mpeg1audio.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M media/formats/mp2t/es_parser_mpeg1audio_unittest.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M media/formats/mp2t/mp2t_stream_parser.h View 2 chunks +9 lines, -10 lines 0 comments Download
M media/formats/mp2t/mp2t_stream_parser.cc View 3 chunks +8 lines, -11 lines 0 comments Download
M media/formats/mp2t/mp2t_stream_parser_unittest.cc View 1 chunk +6 lines, -11 lines 0 comments Download
M media/formats/mp4/aac.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/formats/mp4/aac.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M media/formats/mp4/aac_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/formats/mp4/box_definitions.h View 1 chunk +2 lines, -1 line 0 comments Download
M media/formats/mp4/box_definitions.cc View 4 chunks +14 lines, -13 lines 0 comments Download
M media/formats/mp4/box_reader.h View 7 chunks +11 lines, -8 lines 0 comments Download
M media/formats/mp4/box_reader.cc View 7 chunks +14 lines, -15 lines 0 comments Download
M media/formats/mp4/box_reader_unittest.cc View 7 chunks +8 lines, -8 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser.h View 2 chunks +9 lines, -10 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser.cc View 11 chunks +24 lines, -21 lines 0 comments Download
M media/formats/mp4/mp4_stream_parser_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/formats/mp4/track_run_iterator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/formats/mp4/track_run_iterator.cc View 6 chunks +10 lines, -11 lines 0 comments Download
M media/formats/mp4/track_run_iterator_unittest.cc View 14 chunks +16 lines, -18 lines 0 comments Download
M media/formats/mpeg/adts_stream_parser.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/formats/mpeg/mpeg1_audio_stream_parser.h View 1 chunk +3 lines, -4 lines 0 comments Download
M media/formats/mpeg/mpeg1_audio_stream_parser.cc View 6 chunks +14 lines, -14 lines 0 comments Download
M media/formats/mpeg/mpeg_audio_stream_parser_base.h View 3 chunks +3 lines, -3 lines 0 comments Download
M media/formats/mpeg/mpeg_audio_stream_parser_base.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M media/formats/webm/webm_audio_client.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/formats/webm/webm_audio_client.cc View 5 chunks +10 lines, -10 lines 0 comments Download
M media/formats/webm/webm_cluster_parser.h View 4 chunks +5 lines, -5 lines 0 comments Download
M media/formats/webm/webm_cluster_parser.cc View 18 chunks +29 lines, -28 lines 0 comments Download
M media/formats/webm/webm_cluster_parser_unittest.cc View 13 chunks +40 lines, -103 lines 0 comments Download
M media/formats/webm/webm_content_encodings_client.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/formats/webm/webm_content_encodings_client.cc View 11 chunks +30 lines, -24 lines 0 comments Download
M media/formats/webm/webm_content_encodings_client_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M media/formats/webm/webm_stream_parser.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/formats/webm/webm_stream_parser.cc View 6 chunks +10 lines, -12 lines 0 comments Download
M media/formats/webm/webm_tracks_parser.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M media/formats/webm/webm_tracks_parser.cc View 14 chunks +31 lines, -29 lines 0 comments Download
M media/formats/webm/webm_tracks_parser_unittest.cc View 7 chunks +13 lines, -7 lines 0 comments Download
M media/formats/webm/webm_video_client.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/formats/webm/webm_video_client.cc View 4 chunks +8 lines, -8 lines 0 comments Download
M media/renderers/default_renderer_factory.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M media/test/pipeline_integration_test.cc View 1 chunk +0 lines, -1 line 0 comments Download
M media/test/pipeline_integration_test_base.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (6 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1235793005/20001
5 years, 5 months ago (2015-07-13 22:23:07 UTC) #2
wolenetz
Please take a look at patch set 2: xhwang@: OWNER and committer review (everything) gunsch@: ...
5 years, 5 months ago (2015-07-13 22:25:29 UTC) #3
xhwang
Thanks for taking this! LGTM with a few nits. https://codereview.chromium.org/1235793005/diff/20001/media/base/media_log.cc File media/base/media_log.cc (right): https://codereview.chromium.org/1235793005/diff/20001/media/base/media_log.cc#newcode276 media/base/media_log.cc:276: ...
5 years, 5 months ago (2015-07-13 22:41:17 UTC) #4
xhwang
It seems you also need to fix Android classes like media_source_delegate.cc, WMPA etc.
5 years, 5 months ago (2015-07-13 22:42:12 UTC) #5
gunsch
media/formats/mp2t lgtm
5 years, 5 months ago (2015-07-13 22:48:19 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/91074)
5 years, 5 months ago (2015-07-13 22:50:16 UTC) #8
wolenetz
Thanks for reviews. chcunningham@ did you want to take a look (at patch set 3)? ...
5 years, 5 months ago (2015-07-13 22:59:24 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1235793005/40001
5 years, 5 months ago (2015-07-13 23:01:13 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 5 months ago (2015-07-14 00:07:58 UTC) #13
chcunningham
lgtm
5 years, 5 months ago (2015-07-14 17:41:30 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1235793005/40001
5 years, 5 months ago (2015-07-14 17:42:45 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-14 17:49:16 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/1fb319dc2cfe72901db6303c37a38b0f6010adf9 Cr-Commit-Position: refs/heads/master@{#338710}
5 years, 5 months ago (2015-07-14 17:50:49 UTC) #19
wolenetz
5 years, 5 months ago (2015-07-21 00:57:59 UTC) #20
Message was sent while issue was closed.
Regarding xhwang@'s comment on this:

https://codereview.chromium.org/1235793005/diff/20001/media/formats/webm/webm...
File media/formats/webm/webm_cluster_parser_unittest.cc (right):

https://codereview.chromium.org/1235793005/diff/20001/media/formats/webm/webm...
media/formats/webm/webm_cluster_parser_unittest.cc:287: std::string(),
kUnknownAudioCodec, new MediaLog()));
On 2015/07/13 22:59:24, wolenetz wrote:
> On 2015/07/13 22:41:17, xhwang wrote:
> > nit: It might make sense to have a helper function to create these
> > WebMClusterParsers. It's really hard to read this code here and below ;)
> 
> sgtm. I'll put those in a separate CL though. Thanks!

I have now prepared the separate CL for review @
https://codereview.chromium.org/1242943003/

Powered by Google App Engine
This is Rietveld 408576698