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

Issue 1780333007: AudioManagerBase: Create and run the audio thread lazily. (Closed)

Created:
4 years, 9 months ago by alokp
Modified:
4 years, 9 months ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AudioManagerBase: Create and run the audio thread lazily. This allows AudioManagerBase subclasses not have to create an unnecessary thread if they want to use a different audio task runner. BUG=594234 Committed: https://crrev.com/f4945022d19aaa9a0c70346398f1b2b9e4d64899 Cr-Commit-Position: refs/heads/master@{#381282}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fixed compile errors #

Patch Set 3 : fixed unittests #

Patch Set 4 : fixed compile error on mac #

Patch Set 5 : fixed media unittests on mac #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -65 lines) Patch
M media/audio/alsa/alsa_output_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_low_latency_input_output_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/audio_manager_base.h View 2 chunks +2 lines, -7 lines 0 comments Download
M media/audio/audio_manager_base.cc View 1 2 8 chunks +27 lines, -36 lines 0 comments Download
M media/audio/audio_output_proxy_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M media/audio/mac/audio_manager_mac.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M media/audio/mac/audio_manager_mac.cc View 1 2 3 4 10 chunks +40 lines, -14 lines 0 comments Download
M media/audio/mock_audio_manager.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/audio/mock_audio_manager.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 23 (10 generated)
alokp
I think it would be more robust to pass the audio/worker task runners to AudioManager ...
4 years, 9 months ago (2016-03-12 07:53:36 UTC) #2
DaleCurtis
This looks pretty good since it moves some platform specific code out of the base ...
4 years, 9 months ago (2016-03-14 21:46:09 UTC) #3
alokp
https://codereview.chromium.org/1780333007/diff/1/media/audio/mac/audio_manager_mac.cc File media/audio/mac/audio_manager_mac.cc (right): https://codereview.chromium.org/1780333007/diff/1/media/audio/mac/audio_manager_mac.cc#newcode548 media/audio/mac/audio_manager_mac.cc:548: DCHECK(task_runner_->BelongsToCurrentThread()); On 2016/03/14 21:46:09, DaleCurtis wrote: > Why this ...
4 years, 9 months ago (2016-03-14 22:07:17 UTC) #4
DaleCurtis
lgtm
4 years, 9 months ago (2016-03-14 22:08:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1780333007/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1780333007/40001
4 years, 9 months ago (2016-03-14 23:12:39 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/195158)
4 years, 9 months ago (2016-03-14 23:33:10 UTC) #10
alokp
Dale: I remembered why I had changed GetTaskRunner() to task_runner_: ../../media/audio/mac/audio_manager_mac.cc:838:10: error: member function 'GetTaskRunner' ...
4 years, 9 months ago (2016-03-14 23:37:35 UTC) #11
DaleCurtis
back to task_runner_ sgtm
4 years, 9 months ago (2016-03-15 03:07:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1780333007/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1780333007/60001
4 years, 9 months ago (2016-03-15 04:44:58 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/195308)
4 years, 9 months ago (2016-03-15 05:38:44 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1780333007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1780333007/80001
4 years, 9 months ago (2016-03-15 17:44:16 UTC) #20
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 9 months ago (2016-03-15 19:34:28 UTC) #21
commit-bot: I haz the power
4 years, 9 months ago (2016-03-15 19:35:59 UTC) #23
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/f4945022d19aaa9a0c70346398f1b2b9e4d64899
Cr-Commit-Position: refs/heads/master@{#381282}

Powered by Google App Engine
This is Rietveld 408576698