This source file includes following definitions.
- video_encode_thread_
- GetAudioEncodeMessageLoopProxy
- GetVideoEncodeMessageLoopProxy
#include "chrome/renderer/media/cast_threads.h"
#include "base/logging.h"
CastThreads::CastThreads()
: audio_encode_thread_("CastAudioEncodeThread"),
video_encode_thread_("CastVideoEncodeThread") {
audio_encode_thread_.Start();
video_encode_thread_.Start();
}
scoped_refptr<base::SingleThreadTaskRunner>
CastThreads::GetAudioEncodeMessageLoopProxy() {
return audio_encode_thread_.message_loop_proxy();
}
scoped_refptr<base::SingleThreadTaskRunner>
CastThreads::GetVideoEncodeMessageLoopProxy() {
return video_encode_thread_.message_loop_proxy();
}