bug 1190285 remove unused MediaStreamGraphImpl::GetAudioPosition() r=roc
authorKarl Tomlinson <karlt+@karlt.net>
Wed, 29 Jul 2015 19:29:20 +1200
changeset 287883 ed8acf929ceb8142ab579c2a2787c5982e038fea
parent 287882 d218034091a3358e5670c4f87ef934d117dbe17c
child 287884 abf5d2bbca2a09aad21be69d69f28f01f29e9c80
push id5067
push userraliiev@mozilla.com
push dateMon, 21 Sep 2015 14:04:52 +0000
treeherdermozilla-beta@14221ffe5b2f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1190285
milestone42.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 1190285 remove unused MediaStreamGraphImpl::GetAudioPosition() r=roc GetAudioPosition() has been unused since revision 6eb9af883b3b.
dom/media/MediaStreamGraph.cpp
dom/media/MediaStreamGraphImpl.h
--- a/dom/media/MediaStreamGraph.cpp
+++ b/dom/media/MediaStreamGraph.cpp
@@ -321,24 +321,16 @@ MediaStreamGraphImpl::StreamTimeToGraphT
       streamAmount -= consume;
       t += consume;
     }
   }
   return t;
 }
 
 GraphTime
-MediaStreamGraphImpl::GetAudioPosition(MediaStream* aStream)
-{
-  /* This is correlated to the audio clock when using an AudioCallbackDriver,
-   * and is using a system timer otherwise. */
-  return IterationEnd();
-}
-
-GraphTime
 MediaStreamGraphImpl::IterationEnd() const
 {
   return CurrentDriver()->IterationEnd();
 }
 
 void
 MediaStreamGraphImpl::StreamNotifyOutput(MediaStream* aStream)
 {
--- a/dom/media/MediaStreamGraphImpl.h
+++ b/dom/media/MediaStreamGraphImpl.h
@@ -384,20 +384,16 @@ public:
    * are only known up to that point.
    * If aTime is exactly at the start of a blocked interval, then the blocked
    * interval is included in the time returned if and only if
    * aFlags includes INCLUDE_TRAILING_BLOCKED_INTERVAL.
    */
   GraphTime StreamTimeToGraphTime(MediaStream* aStream, StreamTime aTime,
                                   uint32_t aFlags = 0);
   /**
-   * Get the current audio position of the stream's audio output.
-   */
-  GraphTime GetAudioPosition(MediaStream* aStream);
-  /**
    * Call NotifyHaveCurrentData on aStream's listeners.
    */
   void NotifyHasCurrentData(MediaStream* aStream);
   /**
    * If aStream needs an audio stream but doesn't have one, create it.
    * If aStream doesn't need an audio stream but has one, destroy it.
    */
   void CreateOrDestroyAudioStreams(GraphTime aAudioOutputStartTime, MediaStream* aStream);