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

Issue 154143002: Remove MediaStreamDeviceThread in favor of audio worker TaskRunner. (Closed)

Created:
6 years, 10 months ago by DaleCurtis
Modified:
6 years, 10 months ago
CC:
chromium-reviews, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Remove MediaStreamDeviceThread in favor of audio worker TaskRunner. Part Deux! See https://codereview.chromium.org/17444005/ for the previous attempt. It was reverted oh so long ago because on OSX we use the UI thread as the "audio thread" for http://crbug.com/158170. Now that the AudioManager has the concept of a worker thread for heavy tasks, this can safely be relanded without fear of blocking any browser threads. See http://crbug.com/256945 for more context on the previous revert. BUG=none TEST=unittests pass. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=249252

Patch Set 1 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -39 lines) Patch
M content/browser/renderer_host/media/audio_input_device_manager.h View 2 chunks +3 lines, -2 lines 2 comments Download
M content/browser/renderer_host/media/audio_input_device_manager.cc View 4 chunks +6 lines, -6 lines 2 comments Download
M content/browser/renderer_host/media/media_stream_manager.h View 2 chunks +4 lines, -6 lines 0 comments Download
M content/browser/renderer_host/media/media_stream_manager.cc View 3 chunks +7 lines, -13 lines 3 comments Download
M content/browser/renderer_host/media/media_stream_provider.h View 2 chunks +3 lines, -2 lines 3 comments Download
M content/browser/renderer_host/media/video_capture_manager.h View 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/media/video_capture_manager.cc View 5 chunks +9 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
DaleCurtis
https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/media_stream_provider.h File content/browser/renderer_host/media/media_stream_provider.h (right): https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/media_stream_provider.h#newcode58 content/browser/renderer_host/media/media_stream_provider.h:58: class CONTENT_EXPORT MediaStreamProvider Note: It looks like this class ...
6 years, 10 months ago (2014-02-04 19:10:42 UTC) #1
tommi (sloooow) - chröme
lgtm https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/media_stream_provider.h File content/browser/renderer_host/media/media_stream_provider.h (right): https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/media_stream_provider.h#newcode58 content/browser/renderer_host/media/media_stream_provider.h:58: class CONTENT_EXPORT MediaStreamProvider On 2014/02/04 19:10:42, DaleCurtis wrote: ...
6 years, 10 months ago (2014-02-04 20:45:56 UTC) #2
DaleCurtis
https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/media_stream_provider.h File content/browser/renderer_host/media/media_stream_provider.h (right): https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/media_stream_provider.h#newcode58 content/browser/renderer_host/media/media_stream_provider.h:58: class CONTENT_EXPORT MediaStreamProvider On 2014/02/04 20:45:57, tommi wrote: > ...
6 years, 10 months ago (2014-02-04 20:56:05 UTC) #3
tommi (sloooow) - chröme
Done On Tue, Feb 4, 2014 at 9:56 PM, <dalecurtis@chromium.org> wrote: > > https://codereview.chromium.org/154143002/diff/1/content/ > ...
6 years, 10 months ago (2014-02-04 21:55:53 UTC) #4
henrika (OOO until Aug 14)
Thanks Dale! LGTM with nits. https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/audio_input_device_manager.cc File content/browser/renderer_host/media/audio_input_device_manager.cc (right): https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/audio_input_device_manager.cc#newcode243 content/browser/renderer_host/media/audio_input_device_manager.cc:243: bool AudioInputDeviceManager::IsOnDeviceThread() const { ...
6 years, 10 months ago (2014-02-05 08:42:03 UTC) #5
DaleCurtis
The CQ bit was checked by dalecurtis@chromium.org
6 years, 10 months ago (2014-02-05 21:47:05 UTC) #6
DaleCurtis
https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/audio_input_device_manager.cc File content/browser/renderer_host/media/audio_input_device_manager.cc (right): https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/audio_input_device_manager.cc#newcode243 content/browser/renderer_host/media/audio_input_device_manager.cc:243: bool AudioInputDeviceManager::IsOnDeviceThread() const { On 2014/02/05 08:42:03, henrika wrote: ...
6 years, 10 months ago (2014-02-05 21:47:11 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/154143002/1
6 years, 10 months ago (2014-02-05 21:50:44 UTC) #8
henrika (OOO until Aug 14)
LGTM++
6 years, 10 months ago (2014-02-05 21:52:04 UTC) #9
henrika (OOO until Aug 14)
https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/media_stream_manager.cc File content/browser/renderer_host/media/media_stream_manager.cc (right): https://codereview.chromium.org/154143002/diff/1/content/browser/renderer_host/media/media_stream_manager.cc#newcode1359 content/browser/renderer_host/media/media_stream_manager.cc:1359: device_task_runner_ = audio_manager_->GetWorkerTaskRunner(); Thanks. The OS X part was ...
6 years, 10 months ago (2014-02-05 21:52:21 UTC) #10
commit-bot: I haz the power
6 years, 10 months ago (2014-02-06 03:32:54 UTC) #11
Message was sent while issue was closed.
Change committed as 249252

Powered by Google App Engine
This is Rietveld 408576698