diff options
author | Matt A. Tobin <email@mattatobin.com> | 2022-04-21 19:47:49 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-04-21 19:47:49 -0500 |
commit | 465f4eb3a68ef3fdd894dafc4a6b9ce7fd7ccf8c (patch) | |
tree | f897ef4b086d31539c914a1d9b35d7cfe82a8cd2 /dom/media/MediaDecoder.cpp | |
parent | 13d6ff7e3399952875e7ff7673b2506e7e5f4026 (diff) | |
download | aura-central-465f4eb3a68ef3fdd894dafc4a6b9ce7fd7ccf8c.tar.gz |
Issue #25 - Part 18: Remove GMP (or nearly all of it)
I had planned to ifdef GMP but the infection is so deep that I couldn't do discrete parts and have it stay building.
Diffstat (limited to 'dom/media/MediaDecoder.cpp')
-rw-r--r-- | dom/media/MediaDecoder.cpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/dom/media/MediaDecoder.cpp b/dom/media/MediaDecoder.cpp index ebc694b47..3988d37b1 100644 --- a/dom/media/MediaDecoder.cpp +++ b/dom/media/MediaDecoder.cpp @@ -29,7 +29,6 @@ #include "mozilla/dom/VideoTrack.h" #include "mozilla/dom/VideoTrackList.h" #include "nsPrintfCString.h" -#include "GMPService.h" #include "Layers.h" #include "mozilla/layers/ShadowLayers.h" @@ -926,34 +925,6 @@ MediaDecoder::OwnerHasError() const return mOwner->HasError(); } -class MediaElementGMPCrashHelper : public GMPCrashHelper -{ -public: - explicit MediaElementGMPCrashHelper(HTMLMediaElement* aElement) - : mElement(aElement) - { - MOZ_ASSERT(NS_IsMainThread()); // WeakPtr isn't thread safe. - } - already_AddRefed<nsPIDOMWindowInner> GetPluginCrashedEventTarget() override - { - MOZ_ASSERT(NS_IsMainThread()); // WeakPtr isn't thread safe. - if (!mElement) { - return nullptr; - } - return do_AddRef(mElement->OwnerDoc()->GetInnerWindow()); - } -private: - WeakPtr<HTMLMediaElement> mElement; -}; - -already_AddRefed<GMPCrashHelper> -MediaDecoder::GetCrashHelper() -{ - MOZ_ASSERT(NS_IsMainThread()); - return mOwner->GetMediaElement() ? - MakeAndAddRef<MediaElementGMPCrashHelper>(mOwner->GetMediaElement()) : nullptr; -} - bool MediaDecoder::IsEnded() const { |