зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1390748 - Create default MediaDecoder::GetMozDebugReaderData() implementation. r=jwwang
We have three implementations, in the MP4, WebM and MediaSource decoders. The WebM and MP4 are the same. Ogg and other decoders don't have an implementation, but if we create a default implementation in MediaDecoder, they'll get it for free. MediaSourceDecoder needs a custom override still. MozReview-Commit-ID: AXxn2Xhn0Jn --HG-- extra : rebase_source : 63513ce3b01546142357182f21fce56932b32f7f
This commit is contained in:
Родитель
68ebdda193
Коммит
ba9eb9c3bb
|
@ -1621,6 +1621,14 @@ MediaDecoder::RequestDebugInfo()
|
|||
});
|
||||
}
|
||||
|
||||
void
|
||||
MediaDecoder::GetMozDebugReaderData(nsACString& aString)
|
||||
{
|
||||
if (mReader) {
|
||||
mReader->GetMozDebugReaderData(aString);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
MediaDecoder::NotifyAudibleStateChanged()
|
||||
{
|
||||
|
|
|
@ -406,7 +406,7 @@ private:
|
|||
|
||||
// Returns a string describing the state of the media player internal
|
||||
// data. Used for debugging purposes.
|
||||
virtual void GetMozDebugReaderData(nsACString& aString) { }
|
||||
virtual void GetMozDebugReaderData(nsACString& aString);
|
||||
|
||||
virtual void DumpDebugInfo();
|
||||
|
||||
|
|
|
@ -278,12 +278,4 @@ MP4Decoder::IsVideoAccelerated(layers::KnowsCompositor* aKnowsCompositor, nsIGlo
|
|||
return promise.forget();
|
||||
}
|
||||
|
||||
void
|
||||
MP4Decoder::GetMozDebugReaderData(nsACString& aString)
|
||||
{
|
||||
if (mReader) {
|
||||
mReader->GetMozDebugReaderData(aString);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
|
|
@ -42,8 +42,6 @@ public:
|
|||
static already_AddRefed<dom::Promise>
|
||||
IsVideoAccelerated(layers::KnowsCompositor* aKnowsCompositor, nsIGlobalObject* aParent);
|
||||
|
||||
void GetMozDebugReaderData(nsACString& aString) override;
|
||||
|
||||
private:
|
||||
ChannelMediaDecoder* CloneImpl(MediaDecoderInit& aInit) override
|
||||
{
|
||||
|
|
|
@ -58,13 +58,5 @@ WebMDecoder::IsSupportedType(const MediaContainerType& aContainerType)
|
|||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
WebMDecoder::GetMozDebugReaderData(nsACString& aString)
|
||||
{
|
||||
if (mReader) {
|
||||
mReader->GetMozDebugReaderData(aString);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace mozilla
|
||||
|
||||
|
|
|
@ -25,8 +25,6 @@ public:
|
|||
// If provided, codecs are checked for support.
|
||||
static bool IsSupportedType(const MediaContainerType& aContainerType);
|
||||
|
||||
void GetMozDebugReaderData(nsACString& aString) override;
|
||||
|
||||
private:
|
||||
ChannelMediaDecoder* CloneImpl(MediaDecoderInit& aInit) override
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче