Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(342)

Issue 1973503003: (Relanding) Restores larger output buffer size when output stream requiring smaller size is closed (Closed)

Created:
4 years, 7 months ago by henrika (OOO until Aug 14)
Modified:
4 years, 7 months ago
Reviewers:
o1ka
CC:
chromium-reviews, feature-media-reviews_chromium.org, vanellope-cl_google.com
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

(Relanding) Restores larger output buffer size when output stream requiring smaller size is closed Previous attempt was done at: https://codereview.chromium.org/1903753002/ but it broke an ASAN bot on Mac. This is the second attempt to land. Restores a larger output buffer size when output stream requiring smaller size is closed if no input stream is currently using the same audio device. BUG=602587 TEST=Manual tests and extra debug logging using a wide mix of audio applications (audio tag, WebAudio and WebRTC). I have also verified that all tests now passes under ASAN Committed: https://crrev.com/04fa4fc3ea17b4b93904f79bcf7fb0ced0dfb90b Cr-Commit-Position: refs/heads/master@{#393261}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : Improved comments #

Total comments: 10

Patch Set 4 : Feedback from Olga #

Total comments: 2

Patch Set 5 : added comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -6 lines) Patch
M media/audio/mac/audio_auhal_mac.h View 2 chunks +4 lines, -1 line 0 comments Download
M media/audio/mac/audio_auhal_mac.cc View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M media/audio/mac/audio_manager_mac.h View 1 2 3 4 chunks +30 lines, -0 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 1 2 3 4 7 chunks +125 lines, -1 line 0 comments Download

Messages

Total messages: 19 (7 generated)
henrika (OOO until Aug 14)
Olga, PTAL. I don't do anything new here but only resolve an issue tied to ...
4 years, 7 months ago (2016-05-11 16:55:23 UTC) #3
o1ka
Thanks! Don't see any races. A couple of question: https://codereview.chromium.org/1973503003/diff/40001/media/audio/mac/audio_auhal_mac.cc File media/audio/mac/audio_auhal_mac.cc (right): https://codereview.chromium.org/1973503003/diff/40001/media/audio/mac/audio_auhal_mac.cc#newcode129 media/audio/mac/audio_auhal_mac.cc:129: ...
4 years, 7 months ago (2016-05-12 11:30:17 UTC) #4
o1ka
https://codereview.chromium.org/1973503003/diff/40001/media/audio/mac/audio_auhal_mac.cc File media/audio/mac/audio_auhal_mac.cc (right): https://codereview.chromium.org/1973503003/diff/40001/media/audio/mac/audio_auhal_mac.cc#newcode129 media/audio/mac/audio_auhal_mac.cc:129: manager_->PrepareForAttemptToIncreaseIOBufferSize(device_); On 2016/05/12 11:30:17, o1ka wrote: > Ah ok, ...
4 years, 7 months ago (2016-05-12 12:04:15 UTC) #5
henrika (OOO until Aug 14)
Thanks. PTAL https://codereview.chromium.org/1973503003/diff/40001/media/audio/mac/audio_auhal_mac.cc File media/audio/mac/audio_auhal_mac.cc (right): https://codereview.chromium.org/1973503003/diff/40001/media/audio/mac/audio_auhal_mac.cc#newcode129 media/audio/mac/audio_auhal_mac.cc:129: manager_->PrepareForAttemptToIncreaseIOBufferSize(device_); Good idea. Done. https://codereview.chromium.org/1973503003/diff/40001/media/audio/mac/audio_auhal_mac.cc#newcode129 media/audio/mac/audio_auhal_mac.cc:129: manager_->PrepareForAttemptToIncreaseIOBufferSize(device_); ...
4 years, 7 months ago (2016-05-12 13:02:08 UTC) #6
henrika (OOO until Aug 14)
Thanks. PTAL
4 years, 7 months ago (2016-05-12 13:03:59 UTC) #7
o1ka
Looks fine, I just got one more question https://codereview.chromium.org/1973503003/diff/60001/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): https://codereview.chromium.org/1973503003/diff/60001/media/audio/mac/audio_manager_mac.cc#newcode943 media/audio/mac/audio_manager_mac.cc:943: const ...
4 years, 7 months ago (2016-05-12 13:35:20 UTC) #8
henrika (OOO until Aug 14)
https://codereview.chromium.org/1973503003/diff/60001/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): https://codereview.chromium.org/1973503003/diff/60001/media/audio/mac/audio_manager_mac.cc#newcode943 media/audio/mac/audio_manager_mac.cc:943: const size_t& actual_size = output_io_buffer_size_map_[device_id]; That's a very good ...
4 years, 7 months ago (2016-05-12 14:25:05 UTC) #9
o1ka
On 2016/05/12 14:25:05, henrika wrote: > https://codereview.chromium.org/1973503003/diff/60001/media/audio/mac/audio_manager_mac.cc > File media/audio/mac/audio_manager_mac.cc (right): > > https://codereview.chromium.org/1973503003/diff/60001/media/audio/mac/audio_manager_mac.cc#newcode943 > ...
4 years, 7 months ago (2016-05-12 14:34:29 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1973503003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1973503003/80001
4 years, 7 months ago (2016-05-12 15:03:00 UTC) #14
henrika (OOO until Aug 14)
Thanks Olga. Let's hope it sticks this time :-)
4 years, 7 months ago (2016-05-12 15:03:15 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 7 months ago (2016-05-12 16:05:22 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 16:06:30 UTC) #19
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/04fa4fc3ea17b4b93904f79bcf7fb0ced0dfb90b
Cr-Commit-Position: refs/heads/master@{#393261}

Powered by Google App Engine
This is Rietveld 408576698