Bug 1309516 part 5 - remove unused MediaDecoderReaderWrapper::AwaitStartTime();r=jwwang
☠☠ backed out by 1e1e71cf9fea ☠ ☠
authorKaku Kuo <kaku@mozilla.com>
Fri, 14 Oct 2016 17:45:59 +0800
changeset 321108 874207ad398495b92e86616eb9c211f7aca7890b
parent 321107 804308421d74db8112f9852636afaca31316324f
child 321109 66f39ef1bdcec3d3cdeedc91eb469d3a60301ac0
push id30919
push userphilringnalda@gmail.com
push dateSat, 05 Nov 2016 20:28:20 +0000
treeherdermozilla-central@572249b2ffb6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjwwang
bugs1309516
milestone52.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 1309516 part 5 - remove unused MediaDecoderReaderWrapper::AwaitStartTime();r=jwwang MozReview-Commit-ID: CcybQMPz47i
dom/media/MediaDecoderReaderWrapper.cpp
dom/media/MediaDecoderReaderWrapper.h
--- a/dom/media/MediaDecoderReaderWrapper.cpp
+++ b/dom/media/MediaDecoderReaderWrapper.cpp
@@ -164,24 +164,16 @@ MediaDecoderReaderWrapper::ReadMetadata(
   return InvokeAsync(mReader->OwnerThread(), mReader.get(), __func__,
                      &MediaDecoderReader::AsyncReadMetadata)
          ->Then(mOwnerThread, __func__, this,
                 &MediaDecoderReaderWrapper::OnMetadataRead,
                 &MediaDecoderReaderWrapper::OnMetadataNotRead)
          ->CompletionPromise();
 }
 
-RefPtr<HaveStartTimePromise>
-MediaDecoderReaderWrapper::AwaitStartTime()
-{
-  MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn());
-  MOZ_ASSERT(!mShutdown);
-  return mStartTimeRendezvous->AwaitStartTime();
-}
-
 void
 MediaDecoderReaderWrapper::RequestAudioData()
 {
   MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn());
   MOZ_ASSERT(!mShutdown);
 
   auto p = InvokeAsync(mReader->OwnerThread(), mReader.get(), __func__,
                        &MediaDecoderReader::RequestAudioData);
--- a/dom/media/MediaDecoderReaderWrapper.h
+++ b/dom/media/MediaDecoderReaderWrapper.h
@@ -47,17 +47,16 @@ private:
   MediaCallbackExc<WaitCallbackData> mVideoWaitCallback;
 
 public:
   MediaDecoderReaderWrapper(AbstractThread* aOwnerThread,
                             MediaDecoderReader* aReader);
 
   media::TimeUnit StartTime() const;
   RefPtr<MetadataPromise> ReadMetadata();
-  RefPtr<HaveStartTimePromise> AwaitStartTime();
 
   decltype(mAudioCallback)& AudioCallback() { return mAudioCallback; }
   decltype(mVideoCallback)& VideoCallback() { return mVideoCallback; }
   decltype(mAudioWaitCallback)& AudioWaitCallback() { return mAudioWaitCallback; }
   decltype(mVideoWaitCallback)& VideoWaitCallback() { return mVideoWaitCallback; }
 
   // NOTE: please set callbacks before requesting audio/video data!
   void RequestAudioData();