OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/renderer/media/cast_threads.h" | 5 #include "chrome/renderer/media/cast_threads.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/single_thread_task_runner.h" |
8 | 9 |
9 CastThreads::CastThreads() | 10 CastThreads::CastThreads() |
10 : audio_encode_thread_("CastAudioEncodeThread"), | 11 : audio_encode_thread_("CastAudioEncodeThread"), |
11 video_encode_thread_("CastVideoEncodeThread") { | 12 video_encode_thread_("CastVideoEncodeThread") { |
12 audio_encode_thread_.Start(); | 13 audio_encode_thread_.Start(); |
13 video_encode_thread_.Start(); | 14 video_encode_thread_.Start(); |
14 } | 15 } |
15 | 16 |
16 scoped_refptr<base::SingleThreadTaskRunner> | 17 scoped_refptr<base::SingleThreadTaskRunner> |
17 CastThreads::GetAudioEncodeMessageLoopProxy() { | 18 CastThreads::GetAudioEncodeMessageLoopProxy() { |
18 return audio_encode_thread_.message_loop_proxy(); | 19 return audio_encode_thread_.task_runner(); |
19 } | 20 } |
20 | 21 |
21 scoped_refptr<base::SingleThreadTaskRunner> | 22 scoped_refptr<base::SingleThreadTaskRunner> |
22 CastThreads::GetVideoEncodeMessageLoopProxy() { | 23 CastThreads::GetVideoEncodeMessageLoopProxy() { |
23 return video_encode_thread_.message_loop_proxy(); | 24 return video_encode_thread_.task_runner(); |
24 } | 25 } |
OLD | NEW |