Bug 1274214 - remove use of FlushableTaskQueue. r=kaku.
authorJW Wang <jwwang@mozilla.com>
Thu, 19 May 2016 17:32:22 +0800
changeset 298533 d2e236cd533a7858fb41fc4b6b6fa3c0fd9d772d
parent 298532 561138ee5a324eadf97e32e6aaad19bcdc208bf7
child 298534 5eb32f60c6c47085208a5337088412750116441b
push id77220
push userjwwang@mozilla.com
push dateTue, 24 May 2016 02:29:30 +0000
treeherdermozilla-inbound@d2e236cd533a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1274214 - remove use of FlushableTaskQueue. r=kaku. MozReview-Commit-ID: 5tMa5aqAgQ1
--- a/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp
+++ b/dom/media/platforms/wmf/WMFMediaDataDecoder.cpp
@@ -14,17 +14,17 @@
 #include "mozilla/SyncRunnable.h"
 extern mozilla::LogModule* GetPDMLog();
 #define LOG(...) MOZ_LOG(GetPDMLog(), mozilla::LogLevel::Debug, (__VA_ARGS__))
 namespace mozilla {
 WMFMediaDataDecoder::WMFMediaDataDecoder(MFTManager* aMFTManager,
-                                         FlushableTaskQueue* aTaskQueue,
+                                         TaskQueue* aTaskQueue,
                                          MediaDataDecoderCallback* aCallback)
   : mTaskQueue(aTaskQueue)
   , mCallback(aCallback)
   , mMFTManager(aMFTManager)
   , mIsFlushing(false)
   , mIsShutDown(false)
--- a/dom/media/platforms/wmf/WMFMediaDataDecoder.h
+++ b/dom/media/platforms/wmf/WMFMediaDataDecoder.h
@@ -64,17 +64,17 @@ protected:
 // Decodes audio and video using Windows Media Foundation. Samples are decoded
 // using the MFTDecoder created by the MFTManager. This class implements
 // the higher-level logic that drives mapping the MFT to the async
 // MediaDataDecoder interface. The specifics of decoding the exact stream
 // type are handled by MFTManager and the MFTDecoder it creates.
 class WMFMediaDataDecoder : public MediaDataDecoder {
   WMFMediaDataDecoder(MFTManager* aOutputSource,
-                      FlushableTaskQueue* aAudioTaskQueue,
+                      TaskQueue* aTaskQueue,
                       MediaDataDecoderCallback* aCallback);
   RefPtr<MediaDataDecoder::InitPromise> Init() override;
   nsresult Input(MediaRawData* aSample);
   nsresult Flush() override;
@@ -111,17 +111,17 @@ private:
   void ProcessDrain();
   void ProcessShutdown();
   // Called on the task queue. Tell the MFT that the next Input will have a
   // different configuration (typically resolution change).
   void ProcessConfigurationChanged(UniquePtr<TrackInfo>&& aConfig);
-  RefPtr<FlushableTaskQueue> mTaskQueue;
+  const RefPtr<TaskQueue> mTaskQueue;
   MediaDataDecoderCallback* mCallback;
   nsAutoPtr<MFTManager> mMFTManager;
   // The last offset into the media resource that was passed into Input().
   // This is used to approximate the decoder's position in the media resource.
   int64_t mLastStreamOffset;