зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1390443. P2 - remove unused IsExpectingMoreData(). r=cpearce
MozReview-Commit-ID: KTxmjIrD1WB --HG-- extra : rebase_source : 8c1fc9b4da08290f7a177ef60793c831b0cc7a25 extra : intermediate-source : a86b94e4bdc04bae34f6e8966dfe9b5e11f98677 extra : source : 498e2844d2d0d1cee087552f5aaf5aac7e34c3bf
This commit is contained in:
Родитель
6ce3e3224c
Коммит
9bfb2b1c06
|
@ -260,14 +260,6 @@ protected:
|
|||
MediaResource* Resource() const { return mMaster->mResource; }
|
||||
ReaderProxy* Reader() const { return mMaster->mReader; }
|
||||
const MediaInfo& Info() const { return mMaster->Info(); }
|
||||
bool IsExpectingMoreData() const
|
||||
{
|
||||
// We are expecting more data if either the resource states so, or if we
|
||||
// have a waiting promise pending (such as with non-MSE EME).
|
||||
return Resource()->IsExpectingMoreData()
|
||||
|| mMaster->IsWaitingAudioData()
|
||||
|| mMaster->IsWaitingVideoData();
|
||||
}
|
||||
MediaQueue<AudioData>& AudioQueue() const { return mMaster->mAudioQueue; }
|
||||
MediaQueue<VideoData>& VideoQueue() const { return mMaster->mVideoQueue; }
|
||||
|
||||
|
|
|
@ -214,15 +214,6 @@ public:
|
|||
// Returns true if all the data from aOffset to the end of the stream
|
||||
// is in cache. If the end of the stream is not known, we return false.
|
||||
virtual bool IsDataCachedToEndOfResource(int64_t aOffset) = 0;
|
||||
// Returns true if we are expecting any more data to arrive
|
||||
// sometime in the not-too-distant future, either from the network or from
|
||||
// an appendBuffer call on a MediaSource element.
|
||||
virtual bool IsExpectingMoreData()
|
||||
{
|
||||
// MediaDecoder::mDecoderPosition is roughly the same as Tell() which
|
||||
// returns a position updated by latest Read() or ReadAt().
|
||||
return !IsDataCachedToEndOfResource(Tell()) && !IsSuspended();
|
||||
}
|
||||
// Returns true if this stream is suspended by the cache because the
|
||||
// cache is full. If true then the decoder should try to start consuming
|
||||
// data, otherwise we may not be able to make progress.
|
||||
|
|
|
@ -86,11 +86,6 @@ public:
|
|||
return false;
|
||||
}
|
||||
|
||||
bool IsExpectingMoreData() override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
java::GeckoHLSResourceWrapper::GlobalRef GetResourceWrapper() {
|
||||
return mHLSResourceWrapper;
|
||||
}
|
||||
|
|
|
@ -70,12 +70,6 @@ public:
|
|||
mEnded = aEnded;
|
||||
}
|
||||
|
||||
bool IsExpectingMoreData() override
|
||||
{
|
||||
MonitorAutoLock mon(mMonitor);
|
||||
return !mEnded;
|
||||
}
|
||||
|
||||
private:
|
||||
size_t SizeOfExcludingThis(MallocSizeOf aMallocSizeOf) const override
|
||||
{
|
||||
|
|
|
@ -113,11 +113,6 @@ public:
|
|||
return aMallocSizeOf(this) + SizeOfExcludingThis(aMallocSizeOf);
|
||||
}
|
||||
|
||||
bool IsExpectingMoreData() override
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Used by SourceBuffer.
|
||||
void AppendData(MediaByteBuffer* aData);
|
||||
void Ended();
|
||||
|
|
Загрузка…
Ссылка в новой задаче