Bug 1274212 - remove use of FlushableTaskQueue. r=kaku draft 1274212_remove_EMEMediaDataDecoderProxy_TaskQueue
authorJW Wang <jwwang@mozilla.com>
Thu, 19 May 2016 17:24:30 +0800
branch1274212_remove_EMEMediaDataDecoderProxy_TaskQueue
changeset 370020 2e6ef81cc20e9e10a68d4d2af2cf78bfdc16bc4c
parent 370019 ea3d57a3034577ddc1d079f50094ca4ad46f40bb
child 370021 01a93190d3c5cdbdde3b246cb8e0c5c86bb27f03
child 724570 5976825a1513b29e48e342572dcf63d0649481ee
push id18977
push userjwwang@mozilla.com
push dateTue, 24 May 2016 03:49:46 +0000
reviewerskaku
bugs1274212
milestone49.0a1
Bug 1274212 - remove use of FlushableTaskQueue. r=kaku MozReview-Commit-ID: DmyrIhGq8yb
dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp
--- a/dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp
+++ b/dom/media/platforms/agnostic/eme/EMEDecoderModule.cpp
@@ -162,17 +162,17 @@ private:
   bool mIsShutdown;
 };
 
 class EMEMediaDataDecoderProxy : public MediaDataDecoderProxy {
 public:
   EMEMediaDataDecoderProxy(already_AddRefed<AbstractThread> aProxyThread,
                            MediaDataDecoderCallback* aCallback,
                            CDMProxy* aProxy,
-                           FlushableTaskQueue* aTaskQueue)
+                           TaskQueue* aTaskQueue)
    : MediaDataDecoderProxy(Move(aProxyThread), aCallback)
    , mSamplesWaitingForKey(new SamplesWaitingForKey(this, aTaskQueue, aProxy))
    , mProxy(aProxy)
   {
   }
 
   nsresult Input(MediaRawData* aSample) override;
   nsresult Shutdown() override;
@@ -214,17 +214,17 @@ EMEDecoderModule::EMEDecoderModule(CDMPr
 {
 }
 
 EMEDecoderModule::~EMEDecoderModule()
 {
 }
 
 static already_AddRefed<MediaDataDecoderProxy>
-CreateDecoderWrapper(MediaDataDecoderCallback* aCallback, CDMProxy* aProxy, FlushableTaskQueue* aTaskQueue)
+CreateDecoderWrapper(MediaDataDecoderCallback* aCallback, CDMProxy* aProxy, TaskQueue* aTaskQueue)
 {
   RefPtr<gmp::GeckoMediaPluginService> s(gmp::GeckoMediaPluginService::GetGeckoMediaPluginService());
   if (!s) {
     return nullptr;
   }
   RefPtr<AbstractThread> thread(s->GetAbstractGMPThread());
   if (!thread) {
     return nullptr;