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

Unified Diff: remoting/client/client_context.cc

Issue 10843031: Piping for audio decoding. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small refactoring Created 8 years, 5 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/client/client_context.cc
diff --git a/remoting/client/client_context.cc b/remoting/client/client_context.cc
index 7335dc31727f410d85880a39ea439ebd80470aab..7dcbdf8a0939b5994aa5d5517598ef46c2c0bfb0 100644
--- a/remoting/client/client_context.cc
+++ b/remoting/client/client_context.cc
@@ -8,7 +8,8 @@ namespace remoting {
ClientContext::ClientContext(base::SingleThreadTaskRunner* main_task_runner)
: main_task_runner_(main_task_runner),
- decode_thread_("ChromotingClientDecodeThread") {
+ decode_thread_("ChromotingClientDecodeThread"),
+ audio_decode_thread_("ChromotingClientAudioDecodeThread") {
}
ClientContext::~ClientContext() {
@@ -17,11 +18,13 @@ ClientContext::~ClientContext() {
void ClientContext::Start() {
// Start all the threads.
decode_thread_.Start();
+ audio_decode_thread_.Start();
}
void ClientContext::Stop() {
// Stop all the threads.
decode_thread_.Stop();
+ audio_decode_thread_.Stop();
}
base::SingleThreadTaskRunner* ClientContext::main_task_runner() {
@@ -32,4 +35,8 @@ base::SingleThreadTaskRunner* ClientContext::decode_task_runner() {
return decode_thread_.message_loop_proxy();
}
+base::SingleThreadTaskRunner* ClientContext::audio_decode_task_runner() {
+ return audio_decode_thread_.message_loop_proxy();
+}
+
} // namespace remoting

Powered by Google App Engine
This is Rietveld 408576698