Bug 1314524. Part 1 - remove MDSM::SetDormant() which has no callers. r=kaku
authorJW Wang <jwwang@mozilla.com>
Fri, 28 Oct 2016 16:00:23 +0800
changeset 351536 53e37c0bc34bed6f6257b66d1e3be446d91e8014
parent 351535 60af44ebfa6234197ef55fad8a74c1b02f053c4e
child 351537 5e7a0cfc6d9c63d17e31666a1876060483a1c1fe
push id6795
push userjlund@mozilla.com
push dateMon, 23 Jan 2017 14:19:46 +0000
treeherdermozilla-esr52@76101b503191 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskaku
bugs1314524
milestone52.0a1
Bug 1314524. Part 1 - remove MDSM::SetDormant() which has no callers. r=kaku MozReview-Commit-ID: KQ7pZlCGqW8
dom/media/MediaDecoderStateMachine.cpp
dom/media/MediaDecoderStateMachine.h
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -2507,23 +2507,16 @@ void MediaDecoderStateMachine::Recompute
       duration < mObservedDuration.Ref()) {
     duration = mObservedDuration;
   }
 
   MOZ_ASSERT(duration.ToMicroseconds() >= 0);
   mDuration = Some(duration);
 }
 
-void
-MediaDecoderStateMachine::SetDormant(bool aDormant)
-{
-  MOZ_ASSERT(OnTaskQueue());
-  mStateObj->HandleDormant(aDormant);
-}
-
 RefPtr<ShutdownPromise>
 MediaDecoderStateMachine::Shutdown()
 {
   MOZ_ASSERT(OnTaskQueue());
   return mStateObj->HandleShutdown();
 }
 
 void MediaDecoderStateMachine::PlayStateChanged()
--- a/dom/media/MediaDecoderStateMachine.h
+++ b/dom/media/MediaDecoderStateMachine.h
@@ -276,18 +276,16 @@ private:
   // on the appropriate threads.
   bool OnTaskQueue() const;
 
   // Initialization that needs to happen on the task queue. This is the first
   // task that gets run on the task queue, and is dispatched from the MDSM
   // constructor immediately after the task queue is created.
   void InitializationTask(MediaDecoder* aDecoder);
 
-  void SetDormant(bool aDormant);
-
   void SetAudioCaptured(bool aCaptured);
 
   RefPtr<MediaDecoder::SeekPromise> Seek(SeekTarget aTarget);
 
   RefPtr<ShutdownPromise> Shutdown();
 
   RefPtr<ShutdownPromise> FinishShutdown();