Bug 1206574 - Remove AbstractMediaDecoder::IsShutdown(). r=cpearce.

This commit is contained in:
JW Wang 2015-09-22 10:56:17 +08:00
parent 46ece311dc
commit 9f60378309
5 changed files with 0 additions and 21 deletions

View File

@ -52,9 +52,6 @@ public:
// state.
virtual ReentrantMonitor& GetReentrantMonitor() = 0;
// Returns true if the decoder is shut down.
virtual bool IsShutdown() const = 0;
// A special version of the above for the ogg decoder that is allowed to be
// called cross-thread.
virtual bool IsOggDecoderShutdown() { return false; }

View File

@ -1302,12 +1302,6 @@ MediaDecoder::NotifyWaitingForResourcesStatusChanged()
}
}
bool MediaDecoder::IsShutdown() const {
MOZ_ASSERT(NS_IsMainThread());
NS_ENSURE_TRUE(GetStateMachine(), true);
return mStateMachineIsShutdown;
}
// Drop reference to state machine. Only called during shutdown dance.
void MediaDecoder::BreakCycles() {
SetStateMachine(nullptr);

View File

@ -530,9 +530,6 @@ public:
// state.
ReentrantMonitor& GetReentrantMonitor() override;
// Returns true if the decoder is shut down
bool IsShutdown() const final override;
// Constructs the time ranges representing what segments of the media
// are buffered and playable.
virtual media::TimeIntervals GetBuffered();

View File

@ -45,13 +45,6 @@ BufferDecoder::GetReentrantMonitor()
return mReentrantMonitor;
}
bool
BufferDecoder::IsShutdown() const
{
// BufferDecoder cannot be shut down.
return false;
}
bool
BufferDecoder::OnStateMachineTaskQueue() const
{

View File

@ -33,8 +33,6 @@ public:
virtual ReentrantMonitor& GetReentrantMonitor() final override;
virtual bool IsShutdown() const final override;
virtual bool OnStateMachineTaskQueue() const final override;
virtual bool OnDecodeTaskQueue() const final override;