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

Issue 2503693002: Tracks all open input streams in AudioManagerBase. (Closed)

Created:
4 years, 1 month ago by alokp
Modified:
4 years, 1 month ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Tracks all open input streams in AudioManagerBase. Instead of just tracking the open stream count, this patch tracks stream handles so that they can be explicitly closed on shutdown. BUG=608049 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/4b2ff4ac1890f5f48eb144198796b3853ed1ac44 Cr-Commit-Position: refs/heads/master@{#432786}

Patch Set 1 #

Patch Set 2 : close fake streams explicitly #

Total comments: 1

Patch Set 3 : addressed comments #

Patch Set 4 : rebase #

Patch Set 5 : fixes compile error #

Total comments: 2

Patch Set 6 : added CHECK #

Patch Set 7 : fixes android compile error #

Patch Set 8 : fixes compile error on windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -39 lines) Patch
M media/audio/audio_manager_base.h View 1 2 3 4 5 6 7 3 chunks +7 lines, -4 lines 0 comments Download
M media/audio/audio_manager_base.cc View 1 2 3 4 5 6 7 chunks +21 lines, -7 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 1 2 1 chunk +0 lines, -28 lines 0 comments Download

Messages

Total messages: 41 (22 generated)
alokp
4 years, 1 month ago (2016-11-15 00:11:03 UTC) #5
DaleCurtis
I don't think this is worth landing. Just move the stream tracking code out of ...
4 years, 1 month ago (2016-11-15 00:33:13 UTC) #6
alokp
On 2016/11/15 00:33:13, DaleCurtis wrote: > I don't think this is worth landing. Just move ...
4 years, 1 month ago (2016-11-15 01:03:31 UTC) #7
DaleCurtis
At this point there's not much else it could be; and until we move the ...
4 years, 1 month ago (2016-11-15 01:11:31 UTC) #8
alokp
To avoid one more round of fixing crashes, I am now explicitly closing outstanding fake ...
4 years, 1 month ago (2016-11-15 14:29:38 UTC) #11
DaleCurtis
Hmm why not move all stream tracking into this method? I.e. just have a output_streams_ ...
4 years, 1 month ago (2016-11-15 19:20:20 UTC) #12
alokp
On 2016/11/15 19:20:20, DaleCurtis wrote: > Hmm why not move all stream tracking into this ...
4 years, 1 month ago (2016-11-15 20:54:55 UTC) #13
DaleCurtis
On 2016/11/15 at 20:54:55, alokp wrote: > On 2016/11/15 19:20:20, DaleCurtis wrote: > > Hmm ...
4 years, 1 month ago (2016-11-15 22:37:04 UTC) #14
alokp
On 2016/11/15 22:37:04, DaleCurtis wrote: > On 2016/11/15 at 20:54:55, alokp wrote: > > On ...
4 years, 1 month ago (2016-11-16 00:45:41 UTC) #15
DaleCurtis
On 2016/11/16 at 00:45:41, alokp wrote: > On 2016/11/15 22:37:04, DaleCurtis wrote: > > On ...
4 years, 1 month ago (2016-11-16 00:51:58 UTC) #16
alokp
Replaced input-stream-count with a set of input streams that get explicitly closed during shutdown. I ...
4 years, 1 month ago (2016-11-16 06:34:49 UTC) #17
DaleCurtis
lgtm https://codereview.chromium.org/2503693002/diff/80001/media/audio/audio_manager_base.cc File media/audio/audio_manager_base.cc (right): https://codereview.chromium.org/2503693002/diff/80001/media/audio/audio_manager_base.cc#newcode295 media/audio/audio_manager_base.cc:295: input_streams_.erase(stream); Add the same dcheck you did for ...
4 years, 1 month ago (2016-11-16 21:56:53 UTC) #27
alokp
https://codereview.chromium.org/2503693002/diff/80001/media/audio/audio_manager_base.cc File media/audio/audio_manager_base.cc (right): https://codereview.chromium.org/2503693002/diff/80001/media/audio/audio_manager_base.cc#newcode295 media/audio/audio_manager_base.cc:295: input_streams_.erase(stream); On 2016/11/16 21:56:53, DaleCurtis wrote: > Add the ...
4 years, 1 month ago (2016-11-17 00:55:49 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2503693002/120001
4 years, 1 month ago (2016-11-17 01:04:40 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/318816)
4 years, 1 month ago (2016-11-17 02:30:05 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2503693002/140001
4 years, 1 month ago (2016-11-17 05:21:43 UTC) #36
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 1 month ago (2016-11-17 06:43:31 UTC) #38
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/4b2ff4ac1890f5f48eb144198796b3853ed1ac44 Cr-Commit-Position: refs/heads/master@{#432786}
4 years, 1 month ago (2016-11-17 06:47:25 UTC) #40
henrika (OOO until Aug 14)
4 years, 1 month ago (2016-11-17 08:42:06 UTC) #41
Message was sent while issue was closed.
Thanks both! Looking forward to track the progress of this change.

Powered by Google App Engine
This is Rietveld 408576698