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

Issue 294133003: Extract media::Clock::IsPlaying() into media::Pipeline::ClockState enum. (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

Extract media::Clock::IsPlaying() into media::Pipeline::ClockState enum. Instead of using both Clock::IsPlaying() and waiting_for_clock_update_, use a three-state representation so it's easier to determine the actual state of both audio rendering and the clock when Pipeline is in its playing state. Introduce some helpers to deal with transitioning between states. This is needed for the upcoming BufferingState changes as Pipeline now handles underflow/preroll. BUG=370634 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272301

Patch Set 1 #

Patch Set 2 : fixes #

Total comments: 5

Patch Set 3 : fixes + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -62 lines) Patch
M media/base/clock.h View 1 1 chunk +0 lines, -7 lines 0 comments Download
M media/base/clock.cc View 1 3 chunks +7 lines, -17 lines 0 comments Download
M media/base/pipeline.h View 1 2 chunks +13 lines, -4 lines 0 comments Download
M media/base/pipeline.cc View 1 2 7 chunks +34 lines, -17 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 7 chunks +2 lines, -17 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
scherkus (not reviewing)
6 years, 7 months ago (2014-05-20 21:21:42 UTC) #1
acolwell GONE FROM CHROMIUM
lgtm
6 years, 7 months ago (2014-05-20 22:30:35 UTC) #2
scherkus (not reviewing)
can you take another look? there were some corner-case DCHECKs that popped up on try ...
6 years, 7 months ago (2014-05-21 00:08:52 UTC) #3
acolwell GONE FROM CHROMIUM
lgtm https://codereview.chromium.org/294133003/diff/20001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/294133003/diff/20001/media/base/pipeline.cc#newcode965 media/base/pipeline.cc:965: break; nit: return instead? https://codereview.chromium.org/294133003/diff/20001/media/base/pipeline_unittest.cc File media/base/pipeline_unittest.cc (left): ...
6 years, 7 months ago (2014-05-22 01:28:21 UTC) #4
scherkus (not reviewing)
https://codereview.chromium.org/294133003/diff/20001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/294133003/diff/20001/media/base/pipeline.cc#newcode965 media/base/pipeline.cc:965: break; On 2014/05/22 01:28:21, acolwell wrote: > nit: return ...
6 years, 7 months ago (2014-05-22 17:23:40 UTC) #5
scherkus (not reviewing)
The CQ bit was checked by scherkus@chromium.org
6 years, 7 months ago (2014-05-22 17:24:57 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/294133003/40001
6 years, 7 months ago (2014-05-22 17:28:59 UTC) #7
commit-bot: I haz the power
Change committed as 272301
6 years, 7 months ago (2014-05-22 20:24:38 UTC) #8
RyanS
6 years, 7 months ago (2014-05-23 00:41:29 UTC) #9
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/300433002/ by rschoen@chromium.org.

The reason for reverting is: Speculative revert for failing media_perftests on
desktop (and maybe Android, just hasn't cycled yet)..

Powered by Google App Engine
This is Rietveld 408576698