Bug 1414680 - Remove IsActive() and IsHidden() from MediaDecoderOwner as they're unused by MediaDecoder. r=jwwang

MozReview-Commit-ID: 7NaPBmQJVQC

--HG--
extra : rebase_source : 0cfe05a1aefb23a4070b2855569110e7a4ab6b2c
This commit is contained in:
Chris Pearce 2017-11-05 09:11:09 +01:00
Родитель fc668a36e7
Коммит d716365ee0
3 изменённых файлов: 2 добавлений и 10 удалений

Просмотреть файл

@ -221,9 +221,9 @@ public:
// suspended the channel. // suspended the channel.
virtual void NotifySuspendedByCache(bool aSuspendedByCache) final override; virtual void NotifySuspendedByCache(bool aSuspendedByCache) final override;
virtual bool IsActive() const final override; bool IsActive() const;
virtual bool IsHidden() const final override; bool IsHidden() const;
// Called by the media decoder and the video frame to get the // Called by the media decoder and the video frame to get the
// ImageContainer containing the video data. // ImageContainer containing the video data.

Просмотреть файл

@ -118,12 +118,6 @@ public:
NEXT_FRAME_UNINITIALIZED NEXT_FRAME_UNINITIALIZED
}; };
// Check if the decoder owner is active.
virtual bool IsActive() const = 0;
// Check if the decoder owner is hidden.
virtual bool IsHidden() const = 0;
// Called by media decoder when the audible state changed // Called by media decoder when the audible state changed
virtual void SetAudibleState(bool aAudible) = 0; virtual void SetAudibleState(bool aAudible) = 0;

Просмотреть файл

@ -36,8 +36,6 @@ public:
void FirstFrameLoaded() override {} void FirstFrameLoaded() override {}
void DispatchEncrypted(const nsTArray<uint8_t>& aInitData, void DispatchEncrypted(const nsTArray<uint8_t>& aInitData,
const nsAString& aInitDataType) override {} const nsAString& aInitDataType) override {}
bool IsActive() const override { return true; }
bool IsHidden() const override { return false; }
void DownloadSuspended() override {} void DownloadSuspended() override {}
void DownloadResumed(bool aForceNetworkLoading) override {} void DownloadResumed(bool aForceNetworkLoading) override {}
void NotifySuspendedByCache(bool aIsSuspended) override {} void NotifySuspendedByCache(bool aIsSuspended) override {}