Bug 1273397. Part 4 - remove use of FlushableTaskQueue. r=jya. draft 1273405_VorbisDataDecoder_Flush
authorJW Wang <jwwang@mozilla.com>
Tue, 17 May 2016 15:26:09 +0800
branch1273405_VorbisDataDecoder_Flush
changeset 370013 8e75fa48f27e31fde3bab85794da064565209a06
parent 370012 47b40fa986d86ce8e18197b9fe53ad62c1016008
child 370014 4f6ec02ad7d1932887d2ef1a2f0eded5aabd1c1b
push id18977
push userjwwang@mozilla.com
push dateTue, 24 May 2016 03:49:46 +0000
reviewersjya
bugs1273397
milestone49.0a1
Bug 1273397. Part 4 - remove use of FlushableTaskQueue. r=jya. MozReview-Commit-ID: CEyfb6Aol9Z
dom/media/platforms/agnostic/VPXDecoder.cpp
dom/media/platforms/agnostic/VPXDecoder.h
--- a/dom/media/platforms/agnostic/VPXDecoder.cpp
+++ b/dom/media/platforms/agnostic/VPXDecoder.cpp
@@ -30,17 +30,17 @@ static int MimeTypeToCodec(const nsACStr
   } else if (aMimeType.EqualsLiteral("video/webm; codecs=vp9")) {
     return VPXDecoder::Codec::VP9;
   }
   return -1;
 }
 
 VPXDecoder::VPXDecoder(const VideoInfo& aConfig,
                        ImageContainer* aImageContainer,
-                       FlushableTaskQueue* aTaskQueue,
+                       TaskQueue* aTaskQueue,
                        MediaDataDecoderCallback* aCallback)
   : mImageContainer(aImageContainer)
   , mTaskQueue(aTaskQueue)
   , mCallback(aCallback)
   , mIsFlushing(false)
   , mInfo(aConfig)
   , mCodec(MimeTypeToCodec(aConfig.mMimeType))
 {
--- a/dom/media/platforms/agnostic/VPXDecoder.h
+++ b/dom/media/platforms/agnostic/VPXDecoder.h
@@ -18,17 +18,17 @@ namespace mozilla {
 
 using namespace layers;
 
 class VPXDecoder : public MediaDataDecoder
 {
 public:
   VPXDecoder(const VideoInfo& aConfig,
              ImageContainer* aImageContainer,
-             FlushableTaskQueue* aTaskQueue,
+             TaskQueue* aTaskQueue,
              MediaDataDecoderCallback* aCallback);
 
   ~VPXDecoder();
 
   RefPtr<InitPromise> Init() override;
   nsresult Input(MediaRawData* aSample) override;
   nsresult Flush() override;
   nsresult Drain() override;
@@ -47,17 +47,17 @@ public:
   static bool IsVPX(const nsACString& aMimeType, uint8_t aCodecMask=VP8|VP9);
 
 private:
   void ProcessDecode(MediaRawData* aSample);
   int DoDecode(MediaRawData* aSample);
   void ProcessDrain();
 
   const RefPtr<ImageContainer> mImageContainer;
-  const RefPtr<FlushableTaskQueue> mTaskQueue;
+  const RefPtr<TaskQueue> mTaskQueue;
   MediaDataDecoderCallback* mCallback;
   Atomic<bool> mIsFlushing;
 
   // VPx decoder state
   vpx_codec_ctx_t mVPX;
 
   const VideoInfo& mInfo;