зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1371200. P3 - remove unused code. r=cpearce
MozReview-Commit-ID: JVmmKSAQl3q --HG-- extra : rebase_source : b4a727b9c631fc85d12abb84d2b91b31923093eb extra : source : 79cbb22b4a53945dcff3046b27dac617c8dac51a
This commit is contained in:
Родитель
e8a94c0927
Коммит
eb1841ec23
|
@ -682,18 +682,6 @@ MediaDecoder::SetStateMachineParameters()
|
|||
mAbstractMainThread, this, &MediaDecoder::OnMediaNotSeekable);
|
||||
}
|
||||
|
||||
void
|
||||
MediaDecoder::SetMinimizePrerollUntilPlaybackStarts()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
LOG("SetMinimizePrerollUntilPlaybackStarts()");
|
||||
mMinimizePreroll = true;
|
||||
|
||||
// This needs to be called before we init the state machine, otherwise it will
|
||||
// have no effect.
|
||||
MOZ_DIAGNOSTIC_ASSERT(!mDecoderStateMachine);
|
||||
}
|
||||
|
||||
nsresult
|
||||
MediaDecoder::Play()
|
||||
{
|
||||
|
|
|
@ -228,11 +228,6 @@ public:
|
|||
virtual void SetPlaybackRate(double aPlaybackRate);
|
||||
void SetPreservesPitch(bool aPreservesPitch);
|
||||
|
||||
// Directs the decoder to not preroll extra samples until the media is
|
||||
// played. This reduces the memory overhead of media elements that may
|
||||
// not be played. Note that seeking also doesn't cause us start prerolling.
|
||||
void SetMinimizePrerollUntilPlaybackStarts();
|
||||
|
||||
bool GetMinimizePreroll() const { return mMinimizePreroll; }
|
||||
|
||||
// All MediaStream-related data is protected by mReentrantMonitor.
|
||||
|
@ -385,7 +380,6 @@ private:
|
|||
// to buffer, given the current download and playback rates.
|
||||
virtual bool CanPlayThrough();
|
||||
|
||||
void SetAudioChannel(dom::AudioChannel aChannel) { mAudioChannel = aChannel; }
|
||||
dom::AudioChannel GetAudioChannel() { return mAudioChannel; }
|
||||
|
||||
// Called from HTMLMediaElement when owner document activity changes
|
||||
|
|
Загрузка…
Ссылка в новой задаче