|
Use the browser UI thread for audio on OSX.
After months of attempted workarounds, there appears no avenue
left except to move CoreAudio calls onto the main thread. Sadly
that turns out to be the UI thread.
This CL swaps the message loop normally used by AudioManagerBase
with a pointer to the message loop on which the audio manager
is created (the UI loop in Chrome).
The audio thread used by Chrome is spun up on demand if a class
asks for it. Currently only Tab Audio capture will use this
thread.
BUG= 158170
TEST=No more crashes. miu manually tested tab capture.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204130
Total comments: 20
Total comments: 5
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+137 lines, -293 lines) |
Patch |
 |
M |
chrome/browser/notifications/notification_audio_controller_unittest.cc
|
View
|
1
2
3
4
5
6
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/media/audio_input_renderer_host.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/test/webrtc_audio_device_test.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
media/audio/audio_input_controller.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/audio/audio_input_controller.cc
|
View
|
1
2
3
4
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_manager.h
|
View
|
1
2
3
4
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_manager_base.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/audio/audio_manager_base.cc
|
View
|
1
2
3
4
5
6
7
|
4 chunks |
+34 lines, -14 lines |
0 comments
|
Download
|
 |
M |
media/audio/mac/audio_device_listener_mac.h
|
View
|
1
|
2 chunks |
+2 lines, -33 lines |
0 comments
|
Download
|
 |
M |
media/audio/mac/audio_device_listener_mac.cc
|
View
|
|
6 chunks |
+13 lines, -180 lines |
0 comments
|
Download
|
 |
M |
media/audio/mac/audio_manager_mac.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+12 lines, -9 lines |
0 comments
|
Download
|
 |
M |
media/audio/mock_audio_manager.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
media/audio/mock_audio_manager.cc
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
media/base/media_switches.h
|
View
|
1
2
3
4
|
1 chunk |
+20 lines, -19 lines |
0 comments
|
Download
|
 |
M |
media/base/media_switches.cc
|
View
|
1
2
3
4
|
1 chunk |
+37 lines, -31 lines |
0 comments
|
Download
|
Total messages: 19 (0 generated)
|