| Index: chromecast/media/cma/backend/video_pipeline_device_default.cc
|
| diff --git a/chromecast/media/cma/backend/video_pipeline_device_default.cc b/chromecast/media/cma/backend/video_pipeline_device_default.cc
|
| deleted file mode 100644
|
| index dd305170e1b1a1bac650db74349bee3c1bde6f7b..0000000000000000000000000000000000000000
|
| --- a/chromecast/media/cma/backend/video_pipeline_device_default.cc
|
| +++ /dev/null
|
| @@ -1,82 +0,0 @@
|
| -// Copyright 2015 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 "chromecast/media/cma/backend/video_pipeline_device_default.h"
|
| -
|
| -#include "chromecast/media/cma/backend/media_component_device_default.h"
|
| -
|
| -namespace chromecast {
|
| -namespace media {
|
| -
|
| -VideoPipelineDeviceDefault::VideoPipelineDeviceDefault(
|
| - const MediaPipelineDeviceParams& params,
|
| - MediaClockDevice* media_clock_device)
|
| - : pipeline_(new MediaComponentDeviceDefault(params, media_clock_device)) {
|
| - thread_checker_.DetachFromThread();
|
| -}
|
| -
|
| -VideoPipelineDeviceDefault::~VideoPipelineDeviceDefault() {
|
| -}
|
| -
|
| -void VideoPipelineDeviceDefault::SetClient(Client* client) {
|
| - pipeline_->SetClient(client);
|
| -}
|
| -
|
| -MediaComponentDevice::State VideoPipelineDeviceDefault::GetState() const {
|
| - return pipeline_->GetState();
|
| -}
|
| -
|
| -bool VideoPipelineDeviceDefault::SetState(State new_state) {
|
| - bool success = pipeline_->SetState(new_state);
|
| - if (!success)
|
| - return false;
|
| -
|
| - if (new_state == kStateIdle) {
|
| - DCHECK(IsValidConfig(config_));
|
| - }
|
| - if (new_state == kStateUninitialized) {
|
| - config_ = VideoConfig();
|
| - }
|
| - return true;
|
| -}
|
| -
|
| -bool VideoPipelineDeviceDefault::SetStartPts(int64_t time_microseconds) {
|
| - return pipeline_->SetStartPts(time_microseconds);
|
| -}
|
| -
|
| -MediaComponentDevice::FrameStatus VideoPipelineDeviceDefault::PushFrame(
|
| - DecryptContext* decrypt_context,
|
| - CastDecoderBuffer* buffer,
|
| - FrameStatusCB* completion_cb) {
|
| - return pipeline_->PushFrame(decrypt_context, buffer, completion_cb);
|
| -}
|
| -
|
| -VideoPipelineDeviceDefault::RenderingDelay
|
| -VideoPipelineDeviceDefault::GetRenderingDelay() const {
|
| - return pipeline_->GetRenderingDelay();
|
| -}
|
| -
|
| -void VideoPipelineDeviceDefault::SetVideoClient(VideoClient* client) {
|
| - delete client;
|
| -}
|
| -
|
| -bool VideoPipelineDeviceDefault::SetConfig(const VideoConfig& config) {
|
| - DCHECK(thread_checker_.CalledOnValidThread());
|
| - if (!IsValidConfig(config))
|
| - return false;
|
| - config_ = config;
|
| - if (config.extra_data_size > 0)
|
| - config_extra_data_.assign(config.extra_data,
|
| - config.extra_data + config.extra_data_size);
|
| - else
|
| - config_extra_data_.clear();
|
| - return true;
|
| -}
|
| -
|
| -bool VideoPipelineDeviceDefault::GetStatistics(Statistics* stats) const {
|
| - return pipeline_->GetStatistics(stats);
|
| -}
|
| -
|
| -} // namespace media
|
| -} // namespace chromecast
|
|
|