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

Issue 534073002: Switch to using media::TimeSource inside media::RendererImpl. (Closed)

Created:
6 years, 3 months ago by scherkus (not reviewing)
Modified:
6 years, 3 months ago
Reviewers:
xhwang
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Switch to using media::TimeSource inside media::RendererImpl. This finally replaces the time-updating-callback inside of AudioRenderer and VideoRenderer with a model where clients can query the time. As a result, many other bits of cleanup are now possible: - Renderers no longer need to be aware of the media duration - TimeDeltaInterpolator can be replaced with WallClockTimeSource - We can separate time values used for syncing video vs. informational BUG=370634 Committed: https://crrev.com/ece894570c5f32f7f404f4c8da9ff8b9f03b75cd Cr-Commit-Position: refs/heads/master@{#294029}

Patch Set 1 : #

Total comments: 9

Patch Set 2 : comments and rebase #

Patch Set 3 : fix bad rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -483 lines) Patch
M media/base/audio_renderer.h View 3 chunks +0 lines, -7 lines 0 comments Download
M media/base/mock_filters.h View 1 4 chunks +12 lines, -15 lines 0 comments Download
M media/base/pipeline.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M media/base/pipeline_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M media/base/renderer.h View 1 chunk +1 line, -2 lines 0 comments Download
M media/base/time_source.h View 1 1 chunk +16 lines, -0 lines 0 comments Download
M media/base/video_renderer.h View 3 chunks +1 line, -11 lines 0 comments Download
M media/base/wall_clock_time_source.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M media/base/wall_clock_time_source.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M media/filters/audio_renderer_impl.h View 1 3 chunks +10 lines, -3 lines 0 comments Download
M media/filters/audio_renderer_impl.cc View 1 8 chunks +21 lines, -28 lines 0 comments Download
M media/filters/audio_renderer_impl_unittest.cc View 1 5 chunks +13 lines, -34 lines 0 comments Download
M media/filters/pipeline_integration_test_base.cc View 1 2 chunks +2 lines, -5 lines 0 comments Download
M media/filters/renderer_impl.h View 1 9 chunks +9 lines, -45 lines 0 comments Download
M media/filters/renderer_impl.cc View 1 2 18 chunks +77 lines, -134 lines 0 comments Download
M media/filters/renderer_impl_unittest.cc View 7 chunks +13 lines, -108 lines 0 comments Download
M media/filters/video_renderer_impl.h View 1 2 chunks +1 line, -5 lines 0 comments Download
M media/filters/video_renderer_impl.cc View 1 4 chunks +1 line, -38 lines 0 comments Download
M media/filters/video_renderer_impl_unittest.cc View 1 6 chunks +1 line, -42 lines 0 comments Download

Messages

Total messages: 18 (8 generated)
scherkus (not reviewing)
xhwang: while I've fixed all the tests 'n stuff, I'd like for you to at ...
6 years, 3 months ago (2014-09-03 23:34:09 UTC) #5
xhwang
Looking pretty good. I just have a few minor suggestions. https://codereview.chromium.org/534073002/diff/60001/media/base/time_source.h File media/base/time_source.h (right): https://codereview.chromium.org/534073002/diff/60001/media/base/time_source.h#newcode50 ...
6 years, 3 months ago (2014-09-08 22:56:06 UTC) #6
scherkus (not reviewing)
https://codereview.chromium.org/534073002/diff/60001/media/base/time_source.h File media/base/time_source.h (right): https://codereview.chromium.org/534073002/diff/60001/media/base/time_source.h#newcode50 media/base/time_source.h:50: virtual base::TimeDelta ApproximateCurrentMediaTime() = 0; On 2014/09/08 22:56:06, xhwang ...
6 years, 3 months ago (2014-09-09 18:17:18 UTC) #8
xhwang
lgtm
6 years, 3 months ago (2014-09-09 18:58:07 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/534073002/120001
6 years, 3 months ago (2014-09-09 19:34:02 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_swarming/builds/10587)
6 years, 3 months ago (2014-09-09 22:08:19 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/534073002/120001
6 years, 3 months ago (2014-09-09 22:11:21 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:120001) as 4e437704f48acbe6cbd9a92bff4a12c23dff959a
6 years, 3 months ago (2014-09-09 23:14:25 UTC) #16
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/ece894570c5f32f7f404f4c8da9ff8b9f03b75cd Cr-Commit-Position: refs/heads/master@{#294029}
6 years, 3 months ago (2014-09-10 03:56:19 UTC) #17
earthdok
6 years, 3 months ago (2014-09-10 13:46:54 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:120001) has been created in
https://codereview.chromium.org/557333002/ by earthdok@chromium.org.

The reason for reverting is: ThreadSanitizer reports data races (see issue).

BUG=412764.

Powered by Google App Engine
This is Rietveld 408576698