Bug 1378295. P5 - remove AbstractMediaDecoder from MediaDecoder's base class. r=jya

MozReview-Commit-ID: lIAT21YMRR

--HG--
extra : rebase_source : 72fe91b3c17e448a8b8b748bc1a44f760ff48274
extra : intermediate-source : b1246c769384a69f23d4d88a63ccef636b79f6e1
extra : source : 9f4592b9d821ea775cea39e780c4dd4197aae8ad
This commit is contained in:
JW Wang 2017-07-13 17:38:06 +08:00
Родитель 0abee9d910
Коммит 46e04d4ca0
3 изменённых файлов: 9 добавлений и 9 удалений

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

@ -23,6 +23,7 @@
#include "nsITimer.h"
#include "FrameStatistics.h"
#include "MediaError.h"
#include "MediaDecoder.h"
#include "mozilla/Preferences.h"

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

@ -284,8 +284,6 @@ MediaDecoder::InitStatics()
NS_IMPL_ISUPPORTS(MediaMemoryTracker, nsIMemoryReporter)
NS_IMPL_ISUPPORTS0(MediaDecoder)
void
MediaDecoder::NotifyOwnerActivityChanged(bool aIsDocumentVisible,
Visibility aElementVisibility,

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

@ -7,7 +7,6 @@
#if !defined(MediaDecoder_h_)
#define MediaDecoder_h_
#include "AbstractMediaDecoder.h"
#include "DecoderDoctorDiagnostics.h"
#include "MediaDecoderOwner.h"
#include "MediaEventSource.h"
@ -36,6 +35,7 @@ class nsIPrincipal;
namespace mozilla {
class AbstractThread;
class FrameStatistics;
class VideoFrameContainer;
class MediaFormatReader;
class MediaDecoderStateMachine;
@ -83,14 +83,14 @@ struct MOZ_STACK_CLASS MediaDecoderInit
}
};
class MediaDecoder : public AbstractMediaDecoder
class MediaDecoder
{
public:
typedef MozPromise<bool /* aIgnored */, bool /* aIgnored */,
/* IsExclusive = */ true>
SeekPromise;
NS_DECL_THREADSAFE_ISUPPORTS
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(MediaDecoder)
// Enumeration for the valid play states (see mPlayState)
enum PlayState
@ -295,11 +295,12 @@ private:
virtual void AddSizeOfResources(ResourceSizes* aSizes);
VideoFrameContainer* GetVideoFrameContainer() final override
VideoFrameContainer* GetVideoFrameContainer()
{
return mVideoFrameContainer;
}
layers::ImageContainer* GetImageContainer() override;
layers::ImageContainer* GetImageContainer();
// Fire timeupdate events if needed according to the time constraints
// outlined in the specification.
@ -385,9 +386,9 @@ private:
// Indicate whether the media is same-origin with the element.
void UpdateSameOriginStatus(bool aSameOrigin);
MediaDecoderOwner* GetOwner() const override;
MediaDecoderOwner* GetOwner() const;
AbstractThread* AbstractMainThread() const final override
AbstractThread* AbstractMainThread() const
{
return mAbstractMainThread;
}