root/chrome/renderer/media/cast_threads.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. video_encode_thread_
  2. GetAudioEncodeMessageLoopProxy
  3. GetVideoEncodeMessageLoopProxy

// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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();
}

/* [<][>][^][v][top][bottom][index][help] */