summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2015-03-03 01:01:05 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-03-03 01:01:05 +0000
commit13e71707522a212b192063acb0b221abbe618f60 (patch)
treee96e4f768235dc77478aef7d9a086b8f61f31d4d /services
parent785b34e6b2743e3303dcd56d269259da73c40dfb (diff)
parentd797a9d5daad3051f9ac1d348abc2f434ea3ddcf (diff)
downloadframeworks_av-13e71707522a212b192063acb0b221abbe618f60.zip
frameworks_av-13e71707522a212b192063acb0b221abbe618f60.tar.gz
frameworks_av-13e71707522a212b192063acb0b221abbe618f60.tar.bz2
Merge "Fix compile error if FAST_THREAD_STATISTICS not defined"
Diffstat (limited to 'services')
-rw-r--r--services/audioflinger/Threads.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 40ab0af..04e8d3f 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -3116,8 +3116,10 @@ ssize_t AudioFlinger::MixerThread::threadLoop_write()
#endif
}
state->mCommand = FastMixerState::MIX_WRITE;
+#ifdef FAST_THREAD_STATISTICS
mFastMixerDumpState.increaseSamplingN(mAudioFlinger->isLowRamDevice() ?
FastMixerDumpState::kSamplingNforLowRamDevice : FastMixerDumpState::kSamplingN);
+#endif
sq->end();
sq->push(FastMixerStateQueue::BLOCK_UNTIL_PUSHED);
if (kUseFastMixer == FastMixer_Dynamic) {