Bug 1308071. Part 2 - remove unused members. draft
authorJW Wang <jwwang@mozilla.com>
Thu, 06 Oct 2016 11:26:29 +0800
changeset 424177 b43069b4a5e87190a418f99d1757a3fe88152cf3
parent 424176 9d9f3bc60e394865ef0eb3bef137e8eb470e95a0
child 424178 7cd924efbede21e3233c6bde6c3af6527c8ee889
push id32093
push userjwwang@mozilla.com
push dateWed, 12 Oct 2016 10:15:24 +0000
bugs1308071
milestone52.0a1
Bug 1308071. Part 2 - remove unused members. MozReview-Commit-ID: J3OHVA3VeXA
dom/media/MediaDecoderStateMachine.cpp
dom/media/MediaDecoderStateMachine.h
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -1236,17 +1236,16 @@ MediaDecoderStateMachine::MediaDecoderSt
   mPlaybackRate(1.0),
   mLowAudioThresholdUsecs(detail::LOW_AUDIO_USECS),
   mAmpleAudioThresholdUsecs(detail::AMPLE_AUDIO_USECS),
   mAudioCaptured(false),
   INIT_WATCHABLE(mAudioCompleted, false),
   INIT_WATCHABLE(mVideoCompleted, false),
   mNotifyMetadataBeforeFirstFrame(false),
   mMinimizePreroll(false),
-  mDecodeThreadWaiting(false),
   mSentLoadedMetadataEvent(false),
   mSentFirstFrameLoadedEvent(false),
   mVideoDecodeSuspended(false),
   mVideoDecodeSuspendTimer(mTaskQueue),
   mOutputStreamManager(new OutputStreamManager()),
   mResource(aDecoder->GetResource()),
   mAudioOffloading(false),
   INIT_MIRROR(mBuffered, TimeIntervals()),
--- a/dom/media/MediaDecoderStateMachine.h
+++ b/dom/media/MediaDecoderStateMachine.h
@@ -723,21 +723,16 @@ private:
   // decode more than the first video frame and first block of audio samples
   // for that media when we startup, or after a seek. When Play() is called,
   // we reset this flag, as we assume the user is playing the media, so
   // prerolling is appropriate then. This flag is used to reduce the overhead
   // of prerolling samples for media elements that may not play, both
   // memory and CPU overhead.
   bool mMinimizePreroll;
 
-  // True if the decode thread has gone filled its buffers and is now
-  // waiting to be awakened before it continues decoding. Synchronized
-  // by the decoder monitor.
-  bool mDecodeThreadWaiting;
-
   // Stores presentation info required for playback.
   Maybe<MediaInfo> mInfo;
 
   nsAutoPtr<MetadataTags> mMetadataTags;
 
   mozilla::MediaMetadataManager mMetadataManager;
 
   // Track our request to update the buffered ranges