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

Unified Diff: remoting/host/desktop_environment.cc

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
Index: remoting/host/desktop_environment.cc
diff --git a/remoting/host/desktop_environment.cc b/remoting/host/desktop_environment.cc
index d8935fc421789c5accd9bb0a5ce1873b56389dae..750e6528313d46f1f756503dc21f0bbaafb5b297 100644
--- a/remoting/host/desktop_environment.cc
+++ b/remoting/host/desktop_environment.cc
@@ -13,11 +13,9 @@
namespace remoting {
DesktopEnvironment::DesktopEnvironment(
- scoped_ptr<AudioCapturer> audio_capturer,
scoped_ptr<EventExecutor> event_executor,
scoped_ptr<VideoFrameCapturer> video_capturer)
- : audio_capturer_(audio_capturer.Pass()),
- event_executor_(event_executor.Pass()),
+ : event_executor_(event_executor.Pass()),
video_capturer_(video_capturer.Pass()) {
}
@@ -30,4 +28,8 @@ void DesktopEnvironment::Start(
event_executor_->Start(client_clipboard.Pass());
}
+scoped_ptr<AudioCapturer> DesktopEnvironment::CreateAudioCapturer() {
Wez 2012/10/27 03:43:15 We could remove the requirement for DesktopEnviron
Sergey Ulanov 2012/10/29 23:43:04 Not sure if it's a good idea - it would only make
Wez 2012/10/30 03:43:04 You wouldn't need to ref-count DesktopEnvironment
Sergey Ulanov 2012/10/30 18:47:25 Right, but DesktopEnvironment would still need to
+ return AudioCapturer::Create();
+}
+
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698