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

Issue 154543002: Cleanup AudioManager initialization on OSX to reduce startup delay. (Closed)

Created:
6 years, 10 months ago by DaleCurtis
Modified:
6 years, 10 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Cleanup AudioManager initialization on OSX to reduce startup delay. Since the UI thread is the audio thread on OSX, we should be careful about what we execute during startup. Device enumeration and creation of the device listener can be expensive, so don't do them until the first stream is created. BUG=288759 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251443

Patch Set 1 : Rework. #

Total comments: 3

Patch Set 2 : Fix id. #

Patch Set 3 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -20 lines) Patch
M media/audio/mac/audio_manager_mac.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 1 2 3 chunks +20 lines, -17 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
DaleCurtis
Another CL I had in the queue which aimed to reduce initialization costs, though this ...
6 years, 10 months ago (2014-02-12 23:31:46 UTC) #1
tommi (sloooow) - chröme
https://codereview.chromium.org/154543002/diff/60001/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): https://codereview.chromium.org/154543002/diff/60001/media/audio/mac/audio_manager_mac.cc#newcode588 media/audio/mac/audio_manager_mac.cc:588: if (device_id.empty()) Check for AudioManagerBase::kDefaultDeviceId?
6 years, 10 months ago (2014-02-13 06:56:20 UTC) #2
DaleCurtis
https://codereview.chromium.org/154543002/diff/60001/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): https://codereview.chromium.org/154543002/diff/60001/media/audio/mac/audio_manager_mac.cc#newcode588 media/audio/mac/audio_manager_mac.cc:588: if (device_id.empty()) On 2014/02/13 06:56:20, tommi wrote: > Check ...
6 years, 10 months ago (2014-02-13 19:24:35 UTC) #3
tommi (sloooow) - chröme
On 2014/02/13 19:24:35, DaleCurtis wrote: > https://codereview.chromium.org/154543002/diff/60001/media/audio/mac/audio_manager_mac.cc > File media/audio/mac/audio_manager_mac.cc (right): > > https://codereview.chromium.org/154543002/diff/60001/media/audio/mac/audio_manager_mac.cc#newcode588 > ...
6 years, 10 months ago (2014-02-13 19:45:55 UTC) #4
DaleCurtis
Ah, you're right. I don't think that's always true though. We should definitely unify on ...
6 years, 10 months ago (2014-02-13 20:31:34 UTC) #5
DaleCurtis
https://codereview.chromium.org/154543002/diff/60001/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): https://codereview.chromium.org/154543002/diff/60001/media/audio/mac/audio_manager_mac.cc#newcode588 media/audio/mac/audio_manager_mac.cc:588: if (device_id.empty()) On 2014/02/13 19:24:35, DaleCurtis wrote: > On ...
6 years, 10 months ago (2014-02-13 20:31:53 UTC) #6
tommi (sloooow) - chröme
lgtm
6 years, 10 months ago (2014-02-13 20:55:13 UTC) #7
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 10 months ago (2014-02-14 01:45:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/154543002/240001
6 years, 10 months ago (2014-02-14 01:52:27 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 01:52:29 UTC) #10
commit-bot: I haz the power
Failed to apply patch for media/audio/mac/audio_manager_mac.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 10 months ago (2014-02-14 01:52:30 UTC) #11
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 10 months ago (2014-02-14 02:01:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/154543002/360001
6 years, 10 months ago (2014-02-14 02:02:33 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 03:20:17 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-14 03:20:17 UTC) #15
tommi (sloooow) - chröme
The CQ bit was checked by tommi@chromium.org
6 years, 10 months ago (2014-02-14 08:23:33 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/154543002/360001
6 years, 10 months ago (2014-02-14 10:09:47 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-14 10:10:01 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-14 10:10:02 UTC) #19
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 10 months ago (2014-02-14 20:52:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/154543002/360001
6 years, 10 months ago (2014-02-14 20:53:19 UTC) #21
commit-bot: I haz the power
6 years, 10 months ago (2014-02-14 23:58:02 UTC) #22
Message was sent while issue was closed.
Change committed as 251443

Powered by Google App Engine
This is Rietveld 408576698