зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1143575. Rename AdvanceFrame to UpdateRenderedVideoFrames. r=cpearce
--HG-- extra : commitid : K6557ZbFFzs extra : rebase_source : 3409058bbbb2ef281ea943d4b92f348a5e7b8e2b
This commit is contained in:
Родитель
c3252e17f5
Коммит
52c7e44c24
|
@ -2320,7 +2320,7 @@ nsresult MediaDecoderStateMachine::RunStateMachine()
|
|||
// Start playback if necessary so that the clock can be properly queried.
|
||||
MaybeStartPlayback();
|
||||
|
||||
AdvanceFrame();
|
||||
UpdateRenderedVideoFrames();
|
||||
NS_ASSERTION(!IsPlaying() ||
|
||||
mLogicallySeeking ||
|
||||
IsStateMachineScheduled(),
|
||||
|
@ -2393,7 +2393,7 @@ nsresult MediaDecoderStateMachine::RunStateMachine()
|
|||
{
|
||||
// Start playback if necessary to play the remaining media.
|
||||
MaybeStartPlayback();
|
||||
AdvanceFrame();
|
||||
UpdateRenderedVideoFrames();
|
||||
NS_ASSERTION(!IsPlaying() ||
|
||||
mLogicallySeeking ||
|
||||
IsStateMachineScheduled(),
|
||||
|
@ -2590,7 +2590,7 @@ int64_t MediaDecoderStateMachine::GetClock() const
|
|||
return clock_time;
|
||||
}
|
||||
|
||||
void MediaDecoderStateMachine::AdvanceFrame()
|
||||
void MediaDecoderStateMachine::UpdateRenderedVideoFrames()
|
||||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
AssertCurrentThreadInMonitor();
|
||||
|
|
|
@ -497,7 +497,7 @@ protected:
|
|||
// current frame time as appropriate, and trigger ready state update. The
|
||||
// decoder monitor must be held with exactly one lock count. Called on the
|
||||
// state machine thread.
|
||||
void AdvanceFrame();
|
||||
void UpdateRenderedVideoFrames();
|
||||
|
||||
// Stops the audio thread. The decoder monitor must be held with exactly
|
||||
// one lock count. Called on the state machine thread.
|
||||
|
|
Загрузка…
Ссылка в новой задаче