Move allocation out of ConsumerWrapper::ConsumeAudio
The allocation in ConsumerWrapper::ConsumeAudio causes contention occasionally. Move the allocation to the construction of ConsumerWrapper and reuse the object for each call. Bug: 1078786 Change-Id: I69308e83c607321cbd624616256a4635cabf5a4a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2184135 Commit-Queue: Johannes Kron <kron@google.com> Reviewed-by:Olga Sharonova <olka@chromium.org> Reviewed-by:
Kentaro Hara <haraken@chromium.org> Auto-Submit: Johannes Kron <kron@google.com> Cr-Commit-Position: refs/heads/master@{#766386}
Showing
Please register or sign in to comment