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:
Karl Tomlinson 2013-10-25 12:12:00 +13:00
parent 3e1447602b
commit aced9795e5
2 changed files with 6 additions and 13 deletions

View File

@ -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);
}

View File

@ -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;
};
}