Bug 1203585 - Remove some dead code in GraphDriver.cpp. r=jesup

This commit is contained in:
Paul Adenot 2015-12-01 11:48:08 +01:00
parent 50dff0f8df
commit 57e4adbcd5
2 changed files with 0 additions and 30 deletions

View File

@ -541,7 +541,6 @@ AudioCallbackDriver::AudioCallbackDriver(MediaStreamGraphImpl* aGraphImpl)
, mStarted(false)
, mAudioChannel(aGraphImpl->AudioChannel())
, mInCallback(false)
, mPauseRequested(false)
, mMicrophoneActive(false)
#ifdef XP_MACOSX
, mCallbackReceivedWhileSwitching(0)
@ -799,11 +798,6 @@ AudioCallbackDriver::DataCallback(AudioDataValue* aBuffer, long aFrames)
{
bool stillProcessing;
if (mPauseRequested) {
PodZero(aBuffer, aFrames * mGraphImpl->AudioChannelCount());
return aFrames;
}
#ifdef XP_MACOSX
if (OSXDeviceSwitchingWorkaround()) {
PodZero(aBuffer, aFrames * mGraphImpl->AudioChannelCount());

View File

@ -149,19 +149,6 @@ public:
return mCurrentTimeStamp;
}
bool IsWaiting() {
return mWaitState == WAITSTATE_WAITING_INDEFINITELY ||
mWaitState == WAITSTATE_WAITING_FOR_NEXT_ITERATION;
}
bool IsWaitingIndefinitly() {
return mWaitState == WAITSTATE_WAITING_INDEFINITELY;
}
GraphTime IterationStart() {
return mIterationStart;
}
GraphTime IterationEnd() {
return mIterationEnd;
}
@ -191,13 +178,6 @@ public:
void SetGraphTime(GraphDriver* aPreviousDriver,
GraphTime aLastSwitchNextIterationStart,
GraphTime aLastSwitchNextIterationEnd);
/**
* Call this to indicate that another iteration of the control loop is
* required immediately. The monitor must already be held.
*/
void EnsureImmediateWakeUpLocked();
/**
* Call this to indicate that another iteration of the control loop is
* required on its regular schedule. The monitor must not be held.
@ -526,10 +506,6 @@ private:
/* This is atomic and is set by the audio callback thread. It can be read by
* any thread safely. */
Atomic<bool> mInCallback;
/* A thread has been created to be able to pause and restart the audio thread,
* but has not done so yet. This indicates that the callback should return
* early */
bool mPauseRequested;
/**
* True if microphone is being used by this process. This is synchronized by
* the graph's monitor. */