diff options
author | Eric Laurent <elaurent@google.com> | 2015-08-20 16:18:53 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2015-10-14 00:28:11 +0000 |
commit | aba407f1a6378ac2518d0d76d0d18419b7722a81 (patch) | |
tree | 23ecf127eabd7fa532a5f8b779f0323aaf16bdec /services/audioflinger/AudioFlinger.h | |
parent | ce805c2a0c447dcdd4e649db7415020dbec1100b (diff) | |
download | frameworks_av-aba407f1a6378ac2518d0d76d0d18419b7722a81.zip frameworks_av-aba407f1a6378ac2518d0d76d0d18419b7722a81.tar.gz frameworks_av-aba407f1a6378ac2518d0d76d0d18419b7722a81.tar.bz2 |
audioflinger: increase shared memory heap size
Bug: 21093153.
Change-Id: I389af11451b01ce49fdb8957e2f322ba1925a62e
(cherry picked from commit da73b6c7474aaa5616f0214e238776f12717f32b)
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r-- | services/audioflinger/AudioFlinger.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 20c34ef..08fa70d 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -88,6 +88,12 @@ class ServerProxy; static const nsecs_t kDefaultStandbyTimeInNsecs = seconds(3); + +// Max shared memory size for audio tracks and audio records per client process +static const size_t kClientSharedHeapSizeBytes = 1024*1024; +// Shared memory size multiplier for non low ram devices +static const size_t kClientSharedHeapSizeMultiplier = 4; + #define INCLUDING_FROM_AUDIOFLINGER_H class AudioFlinger : @@ -423,7 +429,7 @@ private: Client(const Client&); Client& operator = (const Client&); const sp<AudioFlinger> mAudioFlinger; - const sp<MemoryDealer> mMemoryDealer; + sp<MemoryDealer> mMemoryDealer; const pid_t mPid; Mutex mTimedTrackLock; |