Bug 1294324 - Remove MediaDecoderStateMachine::IsPausedAndDecoderWaiting. draft
authorJW Wang <jwwang@mozilla.com>
Thu, 11 Aug 2016 11:40:53 +0800
changeset 399447 c6ec7ed381d4125e5879f77e163acf171811ef66
parent 399446 81045053b8d08a9176ea9c060c46011d4fe00089
child 399484 87bc894e1ba0f0f655ca8a3022c1f314a22d8c78
push id25841
push userjwwang@mozilla.com
push dateThu, 11 Aug 2016 03:43:38 +0000
bugs1294324
milestone51.0a1
Bug 1294324 - Remove MediaDecoderStateMachine::IsPausedAndDecoderWaiting. MozReview-Commit-ID: CepvbVjoN1k
dom/media/MediaDecoderStateMachine.h
--- a/dom/media/MediaDecoderStateMachine.h
+++ b/dom/media/MediaDecoderStateMachine.h
@@ -586,21 +586,16 @@ protected:
 
   // Performs one "cycle" of the state machine. Polls the state, and may send
   // a video frame to be displayed, and generally manages the decode. Called
   // periodically via timer to ensure the video stays in sync.
   nsresult RunStateMachine();
 
   bool IsStateMachineScheduled() const;
 
-  // Returns true if we're not playing and the decode thread has filled its
-  // decode buffers and is waiting. We can shut the decode thread down in this
-  // case as it may not be needed again.
-  bool IsPausedAndDecoderWaiting();
-
   // These return true if the respective stream's decode has not yet reached
   // the end of stream.
   bool IsAudioDecoding();
   bool IsVideoDecoding();
 
 private:
   // Resolved by the MediaSink to signal that all audio/video outstanding
   // work is complete and identify which part(a/v) of the sink is shutting down.