mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
Bug 1206574 - Remove AbstractMediaDecoder::IsShutdown(). r=cpearce.
This commit is contained in:
parent
46ece311dc
commit
9f60378309
@ -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; }
|
||||
|
@ -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);
|
||||
|
@ -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();
|
||||
|
@ -45,13 +45,6 @@ BufferDecoder::GetReentrantMonitor()
|
||||
return mReentrantMonitor;
|
||||
}
|
||||
|
||||
bool
|
||||
BufferDecoder::IsShutdown() const
|
||||
{
|
||||
// BufferDecoder cannot be shut down.
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
BufferDecoder::OnStateMachineTaskQueue() const
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user