зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1388236 - Remove B2G-only AudioChannel code from media playback. r=jwwang
This commit is contained in:
Родитель
f4d992a821
Коммит
89fde0ce0f
|
@ -2524,7 +2524,6 @@ nsresult HTMLMediaElement::LoadResource()
|
|||
if (mMediaSource) {
|
||||
MediaDecoderInit decoderInit(
|
||||
this,
|
||||
mAudioChannel,
|
||||
mMuted ? 0.0 : mVolume,
|
||||
mPreservesPitch,
|
||||
mPlaybackRate,
|
||||
|
@ -4729,7 +4728,6 @@ HTMLMediaElement::InitializeDecoderAsClone(ChannelMediaDecoder* aOriginal)
|
|||
NS_ASSERTION(mDecoder == nullptr, "Shouldn't have a decoder");
|
||||
|
||||
MediaDecoderInit decoderInit(this,
|
||||
mAudioChannel,
|
||||
mMuted ? 0.0 : mVolume,
|
||||
mPreservesPitch,
|
||||
mPlaybackRate,
|
||||
|
@ -4816,7 +4814,6 @@ nsresult HTMLMediaElement::InitializeDecoderForChannel(nsIChannel* aChannel,
|
|||
}
|
||||
|
||||
MediaDecoderInit decoderInit(this,
|
||||
mAudioChannel,
|
||||
mMuted ? 0.0 : mVolume,
|
||||
mPreservesPitch,
|
||||
mPlaybackRate,
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
|
||||
#include "MediaDecoder.h"
|
||||
|
||||
#include "AudioChannelService.h"
|
||||
#include "ImageContainer.h"
|
||||
#include "Layers.h"
|
||||
#include "MediaDecoderStateMachine.h"
|
||||
|
@ -368,7 +367,6 @@ MediaDecoder::MediaDecoder(MediaDecoderInit& aInit)
|
|||
, mFrameStats(new FrameStatistics())
|
||||
, mVideoFrameContainer(aInit.mOwner->GetVideoFrameContainer())
|
||||
, mPinnedForSeek(false)
|
||||
, mAudioChannel(aInit.mAudioChannel)
|
||||
, mMinimizePreroll(aInit.mMinimizePreroll)
|
||||
, mFiredMetadataLoaded(false)
|
||||
, mIsDocumentVisible(false)
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include "mozilla/ReentrantMonitor.h"
|
||||
#include "mozilla/StateMirroring.h"
|
||||
#include "mozilla/StateWatching.h"
|
||||
#include "mozilla/dom/AudioChannelBinding.h"
|
||||
#include "necko-config.h"
|
||||
#include "nsAutoPtr.h"
|
||||
#include "nsCOMPtr.h"
|
||||
|
@ -52,7 +51,6 @@ enum class Visibility : uint8_t;
|
|||
struct MOZ_STACK_CLASS MediaDecoderInit
|
||||
{
|
||||
MediaDecoderOwner* const mOwner;
|
||||
const dom::AudioChannel mAudioChannel;
|
||||
const double mVolume;
|
||||
const bool mPreservesPitch;
|
||||
const double mPlaybackRate;
|
||||
|
@ -62,7 +60,6 @@ struct MOZ_STACK_CLASS MediaDecoderInit
|
|||
const MediaContainerType mContainerType;
|
||||
|
||||
MediaDecoderInit(MediaDecoderOwner* aOwner,
|
||||
dom::AudioChannel aAudioChannel,
|
||||
double aVolume,
|
||||
bool aPreservesPitch,
|
||||
double aPlaybackRate,
|
||||
|
@ -71,7 +68,6 @@ struct MOZ_STACK_CLASS MediaDecoderInit
|
|||
bool aLooping,
|
||||
const MediaContainerType& aContainerType)
|
||||
: mOwner(aOwner)
|
||||
, mAudioChannel(aAudioChannel)
|
||||
, mVolume(aVolume)
|
||||
, mPreservesPitch(aPreservesPitch)
|
||||
, mPlaybackRate(aPlaybackRate)
|
||||
|
@ -310,8 +306,6 @@ private:
|
|||
// to buffer, given the current download and playback rates.
|
||||
bool CanPlayThrough();
|
||||
|
||||
dom::AudioChannel GetAudioChannel() { return mAudioChannel; }
|
||||
|
||||
// Called from HTMLMediaElement when owner document activity changes
|
||||
virtual void SetElementVisibility(bool aIsDocumentVisible,
|
||||
Visibility aElementVisibility,
|
||||
|
@ -581,10 +575,6 @@ protected:
|
|||
// while seeking.
|
||||
bool mPinnedForSeek;
|
||||
|
||||
// Be assigned from media element during the initialization and pass to
|
||||
// AudioStream Class.
|
||||
const dom::AudioChannel mAudioChannel;
|
||||
|
||||
// True if the decoder has been directed to minimize its preroll before
|
||||
// playback starts. After the first time playback starts, we don't attempt
|
||||
// to minimize preroll, as we assume the user is likely to keep playing,
|
||||
|
|
|
@ -2700,7 +2700,6 @@ MediaDecoderStateMachine::MediaDecoderStateMachine(MediaDecoder* aDecoder,
|
|||
mAbstractMainThread(aDecoder->AbstractMainThread()),
|
||||
mFrameStats(&aDecoder->GetFrameStatistics()),
|
||||
mVideoFrameContainer(aDecoder->GetVideoFrameContainer()),
|
||||
mAudioChannel(aDecoder->GetAudioChannel()),
|
||||
mTaskQueue(new TaskQueue(
|
||||
GetMediaThreadPool(MediaThreadType::PLAYBACK),
|
||||
"MDSM::mTaskQueue", /* aSupportsTailDispatch = */ true)),
|
||||
|
|
|
@ -496,7 +496,6 @@ private:
|
|||
const RefPtr<AbstractThread> mAbstractMainThread;
|
||||
const RefPtr<FrameStatistics> mFrameStats;
|
||||
const RefPtr<VideoFrameContainer> mVideoFrameContainer;
|
||||
const dom::AudioChannel mAudioChannel;
|
||||
|
||||
// Task queue for running the state machine.
|
||||
RefPtr<TaskQueue> mTaskQueue;
|
||||
|
|
Загрузка…
Ссылка в новой задаче