Bug 1430948. P2 - turn on fuzzy mode for MDSM which doesn't require high resolution timers. r=jya
authorJW Wang <jwwang@mozilla.com>
Tue, 16 Jan 2018 16:12:40 +0800
changeset 454055 b0fdde0a9b35879a9496f878e8bf2d15a491bc2f
parent 454054 d8fec54a8cc95e296970ddfbf429232d89b0d9e4
child 454056 7a4c3ab0ade85738f3ac614eea4be470668d4576
push id1648
push usermtabara@mozilla.com
push dateThu, 01 Mar 2018 12:45:47 +0000
treeherdermozilla-release@cbb9688c2eeb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjya
bugs1430948
milestone59.0a1
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 1430948. P2 - turn on fuzzy mode for MDSM which doesn't require high resolution timers. r=jya MozReview-Commit-ID: BcWz7UmdHC2
dom/media/MediaDecoderStateMachine.cpp
--- a/dom/media/MediaDecoderStateMachine.cpp
+++ b/dom/media/MediaDecoderStateMachine.cpp
@@ -2684,17 +2684,17 @@ MediaDecoderStateMachine::MediaDecoderSt
   mAbstractMainThread(aDecoder->AbstractMainThread()),
   mFrameStats(&aDecoder->GetFrameStatistics()),
   mVideoFrameContainer(aDecoder->GetVideoFrameContainer()),
   mTaskQueue(new TaskQueue(
     GetMediaThreadPool(MediaThreadType::PLAYBACK),
     "MDSM::mTaskQueue", /* aSupportsTailDispatch = */ true)),
   mWatchManager(this, mTaskQueue),
   mDispatchedStateMachine(false),
-  mDelayedScheduler(mTaskQueue),
+  mDelayedScheduler(mTaskQueue, true /*aFuzzy*/),
   mCurrentFrameID(0),
   mReader(new ReaderProxy(mTaskQueue, aReader)),
   mPlaybackRate(1.0),
   mAmpleAudioThreshold(detail::AMPLE_AUDIO_THRESHOLD),
   mAudioCaptured(false),
   mMinimizePreroll(aDecoder->GetMinimizePreroll()),
   mSentFirstFrameLoadedEvent(false),
   mVideoDecodeSuspended(false),