зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1316211. P5 - remove IsAsync() and its callers. r=gerald
MozReview-Commit-ID: CT2gyEak2Qz --HG-- extra : rebase_source : 205bf82c8abe7da9026bff6daab7562a5981ea39 extra : source : a6a543c1d90133036caada487799cac064e2f3f3
This commit is contained in:
Родитель
2f7cce7073
Коммит
39d88e8d8b
|
@ -223,12 +223,6 @@ public:
|
|||
return mTaskQueue;
|
||||
}
|
||||
|
||||
// Returns true if the reader implements RequestAudioData()
|
||||
// and RequestVideoData() asynchronously, rather than using the
|
||||
// implementation in this class to adapt the old synchronous to
|
||||
// the newer async model.
|
||||
virtual bool IsAsync() const = 0;
|
||||
|
||||
// Returns true if this decoder reader uses hardware accelerated video
|
||||
// decoding.
|
||||
virtual bool VideoIsHardwareAccelerated() const = 0;
|
||||
|
|
|
@ -53,7 +53,6 @@ public:
|
|||
void ResetDecode(TrackSet aTracks);
|
||||
|
||||
nsresult Init() { return mReader->Init(); }
|
||||
bool IsAsync() const { return mReader->IsAsync(); }
|
||||
bool UseBufferingHeuristics() const { return mReader->UseBufferingHeuristics(); }
|
||||
|
||||
bool VideoIsHardwareAccelerated() const {
|
||||
|
|
|
@ -2255,8 +2255,7 @@ DecodeMetadataState::OnMetadataRead(MetadataHolder&& aMetadata)
|
|||
}
|
||||
|
||||
if (mMaster->HasVideo()) {
|
||||
SLOG("Video decode isAsync=%d HWAccel=%d videoQueueSize=%d",
|
||||
Reader()->IsAsync(),
|
||||
SLOG("Video decode HWAccel=%d videoQueueSize=%d",
|
||||
Reader()->VideoIsHardwareAccelerated(),
|
||||
mMaster->GetAmpleVideoFrames());
|
||||
}
|
||||
|
@ -3918,7 +3917,7 @@ MediaDecoderStateMachine::SetAudioCaptured(bool aCaptured)
|
|||
uint32_t MediaDecoderStateMachine::GetAmpleVideoFrames() const
|
||||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
return (mReader->IsAsync() && mReader->VideoIsHardwareAccelerated())
|
||||
return mReader->VideoIsHardwareAccelerated()
|
||||
? std::max<uint32_t>(sVideoQueueHWAccelSize, MIN_VIDEO_QUEUE_SIZE)
|
||||
: std::max<uint32_t>(sVideoQueueDefaultSize, MIN_VIDEO_QUEUE_SIZE);
|
||||
}
|
||||
|
|
|
@ -59,8 +59,6 @@ public:
|
|||
|
||||
RefPtr<ShutdownPromise> Shutdown() override;
|
||||
|
||||
bool IsAsync() const override { return true; }
|
||||
|
||||
bool VideoIsHardwareAccelerated() const override;
|
||||
|
||||
bool IsWaitForDataSupported() const override { return true; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче