зеркало из https://github.com/mozilla/gecko-dev.git
b=923301 remove now-unused GetCurrentGraphUpdateIndex() and rename mGraphUpdatesSent to mNextGraphUpdateIndex r=roc
--HG-- extra : transplant_source : %B6%E8%FF%F8%CA%CCWo%D0%82s%FC%92C%F5L%D9%3D%81%88
This commit is contained in:
Родитель
c9bdef52d5
Коммит
5e0ead518c
|
@ -1484,8 +1484,8 @@ MediaStreamGraphImpl::RunInStableState()
|
|||
if (mLifecycleState <= LIFECYCLE_WAITING_FOR_MAIN_THREAD_CLEANUP) {
|
||||
MessageBlock* block = mMessageQueue.AppendElement();
|
||||
block->mMessages.SwapElements(mCurrentTaskMessageQueue);
|
||||
block->mGraphUpdateIndex = mGraphUpdatesSent;
|
||||
++mGraphUpdatesSent;
|
||||
block->mGraphUpdateIndex = mNextGraphUpdateIndex;
|
||||
++mNextGraphUpdateIndex;
|
||||
EnsureNextIterationLocked(lock);
|
||||
}
|
||||
|
||||
|
|
|
@ -1033,13 +1033,6 @@ public:
|
|||
CreateAudioNodeExternalInputStream(AudioNodeEngine* aEngine,
|
||||
TrackRate aSampleRate = 0);
|
||||
|
||||
/**
|
||||
* Returns the number of graph updates sent. This can be used to track
|
||||
* whether a given update has been processed by the graph thread and reflected
|
||||
* in main-thread stream state.
|
||||
*/
|
||||
int64_t GetCurrentGraphUpdateIndex() { return mGraphUpdatesSent; }
|
||||
|
||||
bool IsNonRealtime() const;
|
||||
/**
|
||||
* Start processing non-realtime for a specific number of ticks.
|
||||
|
@ -1059,7 +1052,7 @@ public:
|
|||
|
||||
protected:
|
||||
MediaStreamGraph()
|
||||
: mGraphUpdatesSent(1)
|
||||
: mNextGraphUpdateIndex(1)
|
||||
{
|
||||
MOZ_COUNT_CTOR(MediaStreamGraph);
|
||||
}
|
||||
|
@ -1072,9 +1065,9 @@ protected:
|
|||
nsTArray<nsCOMPtr<nsIRunnable> > mPendingUpdateRunnables;
|
||||
|
||||
// Main thread only
|
||||
// The number of updates we have sent to the media graph thread. We start
|
||||
// this at 1 just to ensure that 0 is usable as a special value.
|
||||
int64_t mGraphUpdatesSent;
|
||||
// The number of updates we have sent to the media graph thread + 1.
|
||||
// We start this at 1 just to ensure that 0 is usable as a special value.
|
||||
int64_t mNextGraphUpdateIndex;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче