зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1294320 - Remove MediaDecoderStateMachine::IsVideoDecodeSuspended() r=kaku
MozReview-Commit-ID: 9iTzmMhw686 --HG-- extra : rebase_source : 4ee1bec4155367dc66a136a4f14c9c83cbdd8dd5
This commit is contained in:
Родитель
268dc7faac
Коммит
73fd41e53b
|
@ -471,10 +471,6 @@ bool MediaDecoderStateMachine::HaveEnoughDecodedVideo()
|
|||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
|
||||
if (IsVideoDecodeSuspended()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (VideoQueue().GetSize() == 0) {
|
||||
return false;
|
||||
}
|
||||
|
@ -1805,13 +1801,6 @@ MediaDecoderStateMachine::EnsureVideoDecodeTaskQueued()
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
if (IsVideoDecodeSuspended() && !IsDecodingFirstFrame()) {
|
||||
// The element is invisible and background videos should be suspended.
|
||||
// If the first frame has already been decoded, don't request anymore video
|
||||
// frames.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
if (!IsVideoDecoding() || mReader->IsRequestingVideoData() ||
|
||||
mReader->IsWaitingVideoData()) {
|
||||
return NS_OK;
|
||||
|
@ -2637,12 +2626,6 @@ bool MediaDecoderStateMachine::IsStateMachineScheduled() const
|
|||
return mDispatchedStateMachine || mDelayedScheduler.IsScheduled();
|
||||
}
|
||||
|
||||
bool MediaDecoderStateMachine::IsVideoDecodeSuspended() const
|
||||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
return mIsReaderSuspended;
|
||||
}
|
||||
|
||||
void
|
||||
MediaDecoderStateMachine::LogicalPlaybackRateChanged()
|
||||
{
|
||||
|
|
|
@ -598,10 +598,6 @@ protected:
|
|||
// case as it may not be needed again.
|
||||
bool IsPausedAndDecoderWaiting();
|
||||
|
||||
// Returns true if the video decoding is suspended because the element is not
|
||||
// visible
|
||||
bool IsVideoDecodeSuspended() const;
|
||||
|
||||
// These return true if the respective stream's decode has not yet reached
|
||||
// the end of stream.
|
||||
bool IsAudioDecoding();
|
||||
|
|
Загрузка…
Ссылка в новой задаче