Gallery: Add animation when zooming pictures.
[chromium-blink-merge.git] / chrome / renderer / media / cast_threads.cc
blob9162ff2ac0ab9af1457cf1bbd4289efcec34549d
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"
9 CastThreads::CastThreads()
10 : audio_encode_thread_("CastAudioEncodeThread"),
11 video_encode_thread_("CastVideoEncodeThread") {
12 audio_encode_thread_.Start();
13 video_encode_thread_.Start();
16 scoped_refptr<base::SingleThreadTaskRunner>
17 CastThreads::GetAudioEncodeMessageLoopProxy() {
18 return audio_encode_thread_.message_loop_proxy();
21 scoped_refptr<base::SingleThreadTaskRunner>
22 CastThreads::GetVideoEncodeMessageLoopProxy() {
23 return video_encode_thread_.message_loop_proxy();