Roll ANGLE 6e56faa..34d719b
[chromium-blink-merge.git] / chrome / renderer / media / cast_threads.cc
blobb6c808ce11b95dc465500f63eeea23aa94691bc4
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/renderer/media/cast_threads.h"
7 #include "base/logging.h"
8 #include "base/single_thread_task_runner.h"
10 CastThreads::CastThreads()
11 : audio_encode_thread_("CastAudioEncodeThread"),
12 video_encode_thread_("CastVideoEncodeThread") {
13 audio_encode_thread_.Start();
14 video_encode_thread_.Start();
17 scoped_refptr<base::SingleThreadTaskRunner>
18 CastThreads::GetAudioEncodeMessageLoopProxy() {
19 return audio_encode_thread_.task_runner();
22 scoped_refptr<base::SingleThreadTaskRunner>
23 CastThreads::GetVideoEncodeMessageLoopProxy() {
24 return video_encode_thread_.task_runner();