Bug 1272232. Part 5 - remove use of FlushableTaskQueue. r=jya.

MozReview-Commit-ID: F3gzwztV03k

--HG--
extra : source : 1c5b4511ae0031c3b3b1bb13ef6f076fa5690683
This commit is contained in:
JW Wang 2016-05-15 20:14:56 +08:00
Родитель b2c3232dd1
Коммит bd544fa97d
4 изменённых файлов: 13 добавлений и 13 удалений

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

@ -51,9 +51,9 @@ static uint32_t ComputeMaxRefFrames(const MediaByteBuffer* aExtraData)
}
AppleVDADecoder::AppleVDADecoder(const VideoInfo& aConfig,
FlushableTaskQueue* aVideoTaskQueue,
MediaDataDecoderCallback* aCallback,
layers::ImageContainer* aImageContainer)
TaskQueue* aTaskQueue,
MediaDataDecoderCallback* aCallback,
layers::ImageContainer* aImageContainer)
: mExtraData(aConfig.mExtraData)
, mCallback(aCallback)
, mPictureWidth(aConfig.mImage.width)
@ -61,7 +61,7 @@ AppleVDADecoder::AppleVDADecoder(const VideoInfo& aConfig,
, mDisplayWidth(aConfig.mDisplay.width)
, mDisplayHeight(aConfig.mDisplay.height)
, mQueuedSamples(0)
, mTaskQueue(aVideoTaskQueue)
, mTaskQueue(aTaskQueue)
, mDecoder(nullptr)
, mMaxRefFrames(ComputeMaxRefFrames(aConfig.mExtraData))
, mImageContainer(aImageContainer)
@ -671,7 +671,7 @@ AppleVDADecoder::CreateOutputConfiguration()
already_AddRefed<AppleVDADecoder>
AppleVDADecoder::CreateVDADecoder(
const VideoInfo& aConfig,
FlushableTaskQueue* aVideoTaskQueue,
TaskQueue* aTaskQueue,
MediaDataDecoderCallback* aCallback,
layers::ImageContainer* aImageContainer)
{
@ -681,7 +681,7 @@ AppleVDADecoder::CreateVDADecoder(
}
RefPtr<AppleVDADecoder> decoder =
new AppleVDADecoder(aConfig, aVideoTaskQueue, aCallback, aImageContainer);
new AppleVDADecoder(aConfig, aTaskQueue, aCallback, aImageContainer);
if (NS_FAILED(decoder->InitializeSession())) {
return nullptr;

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

@ -19,7 +19,7 @@
namespace mozilla {
class FlushableTaskQueue;
class TaskQueue;
class MediaDataDecoderCallback;
namespace layers {
class ImageContainer;
@ -62,7 +62,7 @@ public:
// not supported by current configuration.
static already_AddRefed<AppleVDADecoder> CreateVDADecoder(
const VideoInfo& aConfig,
FlushableTaskQueue* aVideoTaskQueue,
TaskQueue* aTaskQueue,
MediaDataDecoderCallback* aCallback,
layers::ImageContainer* aImageContainer);
@ -89,7 +89,7 @@ private:
protected:
AppleVDADecoder(const VideoInfo& aConfig,
FlushableTaskQueue* aVideoTaskQueue,
TaskQueue* aTaskQueue,
MediaDataDecoderCallback* aCallback,
layers::ImageContainer* aImageContainer);
virtual ~AppleVDADecoder();
@ -122,7 +122,7 @@ private:
virtual void ProcessDrain();
virtual void ProcessShutdown();
const RefPtr<FlushableTaskQueue> mTaskQueue;
const RefPtr<TaskQueue> mTaskQueue;
VDADecoder mDecoder;
const uint32_t mMaxRefFrames;
const RefPtr<layers::ImageContainer> mImageContainer;

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

@ -26,10 +26,10 @@ extern mozilla::LogModule* GetPDMLog();
namespace mozilla {
AppleVTDecoder::AppleVTDecoder(const VideoInfo& aConfig,
FlushableTaskQueue* aVideoTaskQueue,
TaskQueue* aTaskQueue,
MediaDataDecoderCallback* aCallback,
layers::ImageContainer* aImageContainer)
: AppleVDADecoder(aConfig, aVideoTaskQueue, aCallback, aImageContainer)
: AppleVDADecoder(aConfig, aTaskQueue, aCallback, aImageContainer)
, mFormat(nullptr)
, mSession(nullptr)
, mIsHardwareAccelerated(false)

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

@ -16,7 +16,7 @@ namespace mozilla {
class AppleVTDecoder : public AppleVDADecoder {
public:
AppleVTDecoder(const VideoInfo& aConfig,
FlushableTaskQueue* aVideoTaskQueue,
TaskQueue* aTaskQueue,
MediaDataDecoderCallback* aCallback,
layers::ImageContainer* aImageContainer);