mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
Bug 1378631. P2 - remove AbstractMediaDecoder::CanonicalDurationOrNull(). r=jya
MozReview-Commit-ID: 9zWPcYZndsQ --HG-- extra : rebase_source : 3c1c03528c21e08fea05b4de6fbfe73cd7d603d5 extra : intermediate-source : 9e5ab9f0ec1bd4536fe157dd530b374a791c600b extra : source : 4e39231fbed1ea6ea6110b528308b73223878192
This commit is contained in:
parent
031b3932fc
commit
1e7126b1fc
@ -46,11 +46,6 @@ public:
|
||||
// Can be called on any thread.
|
||||
virtual void NotifyDecodedFrames(const FrameStatisticsData& aStats) = 0;
|
||||
|
||||
virtual AbstractCanonical<media::NullableTimeUnit>* CanonicalDurationOrNull()
|
||||
{
|
||||
return nullptr;
|
||||
};
|
||||
|
||||
// Returns an event that will be notified when the owning document changes state
|
||||
// and we might have a new compositor. If this new compositor requires us to
|
||||
// recreate our decoders, then we expect the existing decoderis to return an
|
||||
|
@ -197,13 +197,6 @@ MediaDecoder::GetDuration()
|
||||
return mDuration;
|
||||
}
|
||||
|
||||
AbstractCanonical<media::NullableTimeUnit>*
|
||||
MediaDecoder::CanonicalDurationOrNull()
|
||||
{
|
||||
MOZ_ASSERT(mDecoderStateMachine);
|
||||
return mDecoderStateMachine->CanonicalDuration();
|
||||
}
|
||||
|
||||
void
|
||||
MediaDecoder::SetInfinite(bool aInfinite)
|
||||
{
|
||||
|
@ -780,7 +780,6 @@ protected:
|
||||
Canonical<int64_t> mDecoderPosition;
|
||||
|
||||
public:
|
||||
AbstractCanonical<media::NullableTimeUnit>* CanonicalDurationOrNull() override;
|
||||
AbstractCanonical<double>* CanonicalVolume() { return &mVolume; }
|
||||
AbstractCanonical<bool>* CanonicalPreservesPitch()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user