summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/FastMixerDumpState.h
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/FastMixerDumpState.h
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/FastMixerDumpState.h')
-rw-r--r--services/audioflinger/FastMixerDumpState.h14
1 files changed, 1 insertions, 13 deletions
diff --git a/services/audioflinger/FastMixerDumpState.h b/services/audioflinger/FastMixerDumpState.h
index bd475d6..d958bf4 100644
--- a/services/audioflinger/FastMixerDumpState.h
+++ b/services/audioflinger/FastMixerDumpState.h
@@ -66,11 +66,7 @@ struct FastTrackDump {
// Only POD types are permitted, and the contents shouldn't be trusted (i.e. do range checks).
// It has a different lifetime than the FastMixer, and so it can't be a member of FastMixer.
struct FastMixerDumpState : FastThreadDumpState {
- FastMixerDumpState(
-#ifdef FAST_THREAD_STATISTICS
- uint32_t samplingN = kSamplingNforLowRamDevice
-#endif
- );
+ FastMixerDumpState();
/*virtual*/ ~FastMixerDumpState();
void dump(int fd) const; // should only be called on a stable copy, not the original
@@ -83,14 +79,6 @@ struct FastMixerDumpState : FastThreadDumpState {
size_t mFrameCount;
uint32_t mTrackMask; // mask of active tracks
FastTrackDump mTracks[FastMixerState::kMaxFastTracks];
-
-#ifdef FAST_THREAD_STATISTICS
- // Compile-time constant for a "low RAM device", must be a power of 2 <= kSamplingN.
- // This value was chosen such that each array uses 1 small page (4 Kbytes).
- static const uint32_t kSamplingNforLowRamDevice = 0x400;
- // Increase sampling window after construction, must be a power of 2 <= kSamplingN
- void increaseSamplingN(uint32_t samplingN);
-#endif
};
} // android