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

Unified Diff: remoting/host/audio_scheduler.h

Issue 11260053: Use correct thread for audio capturing and encoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | « no previous file | remoting/host/audio_scheduler.cc » ('j') | remoting/host/audio_scheduler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/audio_scheduler.h
diff --git a/remoting/host/audio_scheduler.h b/remoting/host/audio_scheduler.h
index 9ccc991e2590fd545506b59d2b07ba7730548f90..0a3e03b27a2731a8f7ee1ebd1482cdd175176111 100644
--- a/remoting/host/audio_scheduler.h
+++ b/remoting/host/audio_scheduler.h
@@ -22,6 +22,7 @@ class AudioStub;
class AudioCapturer;
class AudioEncoder;
class AudioPacket;
+class DesktopEnvironment;
// AudioScheduler is responsible for fetching audio data from the AudioCapturer
// and encoding it before passing it to the AudioStub for delivery to the
@@ -36,7 +37,7 @@ class AudioScheduler : public base::RefCountedThreadSafe<AudioScheduler> {
AudioScheduler(
scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner,
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner,
- AudioCapturer* audio_capturer,
+ DesktopEnvironment* desktop_environment,
scoped_ptr<AudioEncoder> audio_encoder,
protocol::AudioStub* audio_stub);
@@ -53,7 +54,7 @@ class AudioScheduler : public base::RefCountedThreadSafe<AudioScheduler> {
virtual ~AudioScheduler();
// Called on the audio thread to start capturing.
- void StartOnAudioThread();
+ void StartOnAudioThread(DesktopEnvironment* desktop_environment);
// Called on the audio thread to stop capturing.
void StopOnAudioThread(const base::Closure& done_task);
@@ -67,7 +68,7 @@ class AudioScheduler : public base::RefCountedThreadSafe<AudioScheduler> {
scoped_refptr<base::SingleThreadTaskRunner> audio_task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
- AudioCapturer* audio_capturer_;
+ scoped_ptr<AudioCapturer> audio_capturer_;
scoped_ptr<AudioEncoder> audio_encoder_;
« no previous file with comments | « no previous file | remoting/host/audio_scheduler.cc » ('j') | remoting/host/audio_scheduler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698