mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-14 05:45:37 +00:00
bug 1190285 move GetIntervalForIteration() from base class to ThreadedDriver, where it is used r=padenot
--HG-- extra : rebase_source : c34ce851b40d8057ff5ca97cdd5f6f703f8a2af0
This commit is contained in:
parent
fdab75f3a4
commit
0c346a395e
@ -692,12 +692,6 @@ AudioCallbackDriver::Revive()
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
AudioCallbackDriver::GetIntervalForIteration(GraphTime& aFrom,
|
||||
GraphTime& aTo)
|
||||
{
|
||||
}
|
||||
|
||||
void AudioCallbackDriver::WaitForNextIteration()
|
||||
{
|
||||
}
|
||||
|
@ -75,10 +75,6 @@ public:
|
||||
explicit GraphDriver(MediaStreamGraphImpl* aGraphImpl);
|
||||
|
||||
NS_INLINE_DECL_THREADSAFE_REFCOUNTING(GraphDriver);
|
||||
/* When the graph wakes up to do an iteration, this returns the range of time
|
||||
* that will be processed. */
|
||||
virtual void GetIntervalForIteration(GraphTime& aFrom,
|
||||
GraphTime& aTo) = 0;
|
||||
/* For real-time graphs, this waits until it's time to process more data. For
|
||||
* offline graphs, this is a no-op. */
|
||||
virtual void WaitForNextIteration() = 0;
|
||||
@ -265,6 +261,10 @@ public:
|
||||
|
||||
virtual bool OnThread() override { return !mThread || NS_GetCurrentThread() == mThread; }
|
||||
|
||||
/* When the graph wakes up to do an iteration, implementations return the
|
||||
* range of time that will be processed. */
|
||||
virtual void GetIntervalForIteration(GraphTime& aFrom,
|
||||
GraphTime& aTo) = 0;
|
||||
protected:
|
||||
nsCOMPtr<nsIThread> mThread;
|
||||
};
|
||||
@ -360,8 +360,6 @@ public:
|
||||
virtual void Stop() override;
|
||||
virtual void Resume() override;
|
||||
virtual void Revive() override;
|
||||
virtual void GetIntervalForIteration(GraphTime& aFrom,
|
||||
GraphTime& aTo) override;
|
||||
virtual void WaitForNextIteration() override;
|
||||
virtual void WakeUp() override;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user