1 // Copyright 2015 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 "chromecast/media/cma/backend/media_pipeline_backend_default.h"
7 #include "chromecast/media/cma/backend/audio_pipeline_device_default.h"
8 #include "chromecast/media/cma/backend/media_clock_device_default.h"
9 #include "chromecast/media/cma/backend/video_pipeline_device_default.h"
11 namespace chromecast
{
14 MediaPipelineBackendDefault::MediaPipelineBackendDefault(
15 const MediaPipelineDeviceParams
& params
)
18 MediaPipelineBackendDefault::~MediaPipelineBackendDefault() {}
20 MediaClockDevice
* MediaPipelineBackendDefault::GetClock() {
22 clock_
.reset(new MediaClockDeviceDefault());
26 AudioPipelineDevice
* MediaPipelineBackendDefault::GetAudio() {
28 audio_
.reset(new AudioPipelineDeviceDefault(params_
, GetClock()));
32 VideoPipelineDevice
* MediaPipelineBackendDefault::GetVideo() {
34 video_
.reset(new VideoPipelineDeviceDefault(params_
, GetClock()));
39 } // namespace chromecast