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

Unified Diff: media/audio/audio_manager.h

Issue 14273018: Use the browser UI thread for audio on OSX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_manager.h
diff --git a/media/audio/audio_manager.h b/media/audio/audio_manager.h
index b513ec95db868302f44391c4c6865a0a2b44ca87..5bae02092578cafa6133740059ae611580d0ac6a 100644
--- a/media/audio/audio_manager.h
+++ b/media/audio/audio_manager.h
@@ -112,6 +112,11 @@ class MEDIA_EXPORT AudioManager {
// Returns message loop used for audio IO.
virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() = 0;
+ // Heavyweight tasks should use GetWorkerLoop() instead of GetMessageLoop().
+ // On most platforms they are the same, but some share the UI loop with the
+ // audio IO loop.
+ virtual scoped_refptr<base::MessageLoopProxy> GetWorkerLoop() = 0;
+
// Allows clients to listen for device state changes; e.g. preferred sample
// rate or channel layout changes. The typical response to receiving this
// callback is to recreate the stream.
« no previous file with comments | « media/audio/audio_input_controller.cc ('k') | media/audio/audio_manager_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698