summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.cpp
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-03-02 14:47:19 -0800
committerGlenn Kasten <gkasten@google.com>2015-03-03 08:50:40 -0800
commitfbdb2aceab7317aa44bc8f301a93eb49e17b2bce (patch)
tree97defd36379d3d4770dbd02dbacf046084889761 /services/audioflinger/Threads.cpp
parent63238efb0d674758902918e3cdaac322126484b7 (diff)
downloadframeworks_av-fbdb2aceab7317aa44bc8f301a93eb49e17b2bce.zip
frameworks_av-fbdb2aceab7317aa44bc8f301a93eb49e17b2bce.tar.gz
frameworks_av-fbdb2aceab7317aa44bc8f301a93eb49e17b2bce.tar.bz2
Pull up increaseSamplingN and kSamplingNforLowRamDevice
from FastMixerDumpState to FastThreadDumpState, and remove unused parameter from FastMixerDumpState constructor. Change-Id: Ib8937b106622a8da28a6ef6043de4528ae82cb05
Diffstat (limited to 'services/audioflinger/Threads.cpp')
-rw-r--r--services/audioflinger/Threads.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 971a3b8..7451245 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -3118,7 +3118,7 @@ ssize_t AudioFlinger::MixerThread::threadLoop_write()
state->mCommand = FastMixerState::MIX_WRITE;
#ifdef FAST_THREAD_STATISTICS
mFastMixerDumpState.increaseSamplingN(mAudioFlinger->isLowRamDevice() ?
- FastMixerDumpState::kSamplingNforLowRamDevice : FastMixerDumpState::kSamplingN);
+ FastThreadDumpState::kSamplingNforLowRamDevice : FastThreadDumpState::kSamplingN);
#endif
sq->end();
sq->push(FastMixerStateQueue::BLOCK_UNTIL_PUSHED);
@@ -5388,8 +5388,8 @@ reacquire_wakelock:
state->mCommand = FastCaptureState::READ_WRITE;
#if 0 // FIXME
mFastCaptureDumpState.increaseSamplingN(mAudioFlinger->isLowRamDevice() ?
- FastCaptureDumpState::kSamplingNforLowRamDevice :
- FastMixerDumpState::kSamplingN);
+ FastThreadDumpState::kSamplingNforLowRamDevice :
+ FastThreadDumpState::kSamplingN);
#endif
didModify = true;
}