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

Issue 284763002: Update AudioRenderer API to fire changes in BufferingState. (Closed)

Created:
6 years, 7 months ago by scherkus (not reviewing)
Modified:
6 years, 7 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Update AudioRenderer API to fire changes in BufferingState. As a result, Pipeline now handles prerolling and underflow/rebuffering by listening for BUFFERING_HAVE_NOTHING/ENOUGH callbacks. Preroll() is renamed StartPlayingFrom() and no longer accepts a completion callback. In this new model, AudioRenderers immediately enter and remain in the "playing" state and fire buffering state callbacks to let Pipeline know when to start/stop the clock. BUG=144683 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272465

Patch Set 1 : #

Total comments: 14

Patch Set 2 : nits #

Patch Set 3 : rebase #

Total comments: 10

Patch Set 4 : fixes + rebase #

Patch Set 5 : fix aosp build #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+228 lines, -386 lines) Patch
M media/base/audio_renderer.h View 1 2 3 5 chunks +14 lines, -13 lines 0 comments Download
M media/base/mock_filters.h View 2 chunks +2 lines, -2 lines 0 comments Download
M media/base/pipeline.h View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M media/base/pipeline.cc View 1 2 3 4 12 chunks +36 lines, -34 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 2 3 15 chunks +77 lines, -30 lines 0 comments Download
M media/filters/audio_renderer_impl.h View 1 2 3 10 chunks +16 lines, -29 lines 0 comments Download
M media/filters/audio_renderer_impl.cc View 1 2 3 22 chunks +51 lines, -88 lines 0 comments Download
M media/filters/audio_renderer_impl_unittest.cc View 1 2 3 14 chunks +30 lines, -186 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
scherkus (not reviewing)
acolwell: looking for preliminary feedback on API names, etc... but feel free to do a ...
6 years, 7 months ago (2014-05-13 04:15:16 UTC) #1
scherkus (not reviewing)
https://codereview.chromium.org/284763002/diff/50001/media/filters/pipeline_integration_test_base.cc File media/filters/pipeline_integration_test_base.cc (left): https://codereview.chromium.org/284763002/diff/50001/media/filters/pipeline_integration_test_base.cc#oldcode290 media/filters/pipeline_integration_test_base.cc:290: audio_renderer_impl->DisableUnderflowForTesting(); note to self ... I need to verify ...
6 years, 7 months ago (2014-05-13 04:18:20 UTC) #2
DaleCurtis
https://codereview.chromium.org/284763002/diff/50001/media/filters/pipeline_integration_test_base.cc File media/filters/pipeline_integration_test_base.cc (left): https://codereview.chromium.org/284763002/diff/50001/media/filters/pipeline_integration_test_base.cc#oldcode290 media/filters/pipeline_integration_test_base.cc:290: audio_renderer_impl->DisableUnderflowForTesting(); On 2014/05/13 04:18:20, scherkus wrote: > note to ...
6 years, 7 months ago (2014-05-13 17:54:00 UTC) #3
scherkus (not reviewing)
On 2014/05/13 17:54:00, DaleCurtis wrote: > https://codereview.chromium.org/284763002/diff/50001/media/filters/pipeline_integration_test_base.cc > File media/filters/pipeline_integration_test_base.cc (left): > > https://codereview.chromium.org/284763002/diff/50001/media/filters/pipeline_integration_test_base.cc#oldcode290 > ...
6 years, 7 months ago (2014-05-13 18:00:45 UTC) #4
DaleCurtis
Hmm, I thought underflow of audio could cause the video to drop frames. Definitely muting ...
6 years, 7 months ago (2014-05-13 18:03:34 UTC) #5
scherkus (not reviewing)
On 2014/05/13 18:03:34, DaleCurtis wrote: > Hmm, I thought underflow of audio could cause the ...
6 years, 7 months ago (2014-05-13 18:53:41 UTC) #6
acolwell GONE FROM CHROMIUM
https://codereview.chromium.org/284763002/diff/50001/media/base/pipeline.cc File media/base/pipeline.cc (left): https://codereview.chromium.org/284763002/diff/50001/media/base/pipeline.cc#oldcode883 media/base/pipeline.cc:883: if (!task_runner_->BelongsToCurrentThread()) { \o/ I'm happy to see this ...
6 years, 7 months ago (2014-05-13 20:44:26 UTC) #7
scherkus (not reviewing)
On 2014/05/13 18:53:41, scherkus wrote: > On 2014/05/13 18:03:34, DaleCurtis wrote: > > Hmm, I ...
6 years, 7 months ago (2014-05-13 20:45:32 UTC) #8
scherkus (not reviewing)
https://codereview.chromium.org/284763002/diff/50001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/284763002/diff/50001/media/base/pipeline.cc#newcode866 media/base/pipeline.cc:866: BindToCurrentLoop(base::Bind(&Pipeline::BufferingStateChanged, On 2014/05/13 20:44:27, acolwell_OOO_5-12_to_5-15 wrote: > nit: Shouldn't ...
6 years, 7 months ago (2014-05-15 23:28:42 UTC) #9
acolwell GONE FROM CHROMIUM
lgtm % comments https://codereview.chromium.org/284763002/diff/90001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/284763002/diff/90001/media/filters/audio_renderer_impl.cc#newcode175 media/filters/audio_renderer_impl.cc:175: buffering_state_ = BUFFERING_HAVE_NOTHING; Why don't we ...
6 years, 7 months ago (2014-05-16 17:25:08 UTC) #10
scherkus (not reviewing)
https://codereview.chromium.org/284763002/diff/90001/media/filters/audio_renderer_impl.cc File media/filters/audio_renderer_impl.cc (right): https://codereview.chromium.org/284763002/diff/90001/media/filters/audio_renderer_impl.cc#newcode175 media/filters/audio_renderer_impl.cc:175: buffering_state_ = BUFFERING_HAVE_NOTHING; On 2014/05/16 17:25:08, acolwell wrote: > ...
6 years, 7 months ago (2014-05-22 17:49:12 UTC) #11
scherkus (not reviewing)
The CQ bit was checked by scherkus@chromium.org
6 years, 7 months ago (2014-05-22 21:45:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/284763002/170001
6 years, 7 months ago (2014-05-22 21:46:34 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 03:40:10 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 06:49:32 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/31899)
6 years, 7 months ago (2014-05-23 06:49:33 UTC) #16
scherkus (not reviewing)
The CQ bit was checked by scherkus@chromium.org
6 years, 7 months ago (2014-05-23 07:54:48 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/284763002/170001
6 years, 7 months ago (2014-05-23 07:58:17 UTC) #18
commit-bot: I haz the power
Change committed as 272465
6 years, 7 months ago (2014-05-23 10:30:47 UTC) #19
alph
6 years, 7 months ago (2014-05-23 12:06:48 UTC) #20
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/291093013/ by alph@chromium.org.

The reason for reverting is: Broke blink tests:
mediasource-redundant-seek.html
mediasource-seek-during-pending-seek.html

http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.6/builds/....

Powered by Google App Engine
This is Rietveld 408576698