Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: chromecast/media/cma/backend/video_pipeline_device_default.cc

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Address alokp@ comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « chromecast/media/cma/backend/video_pipeline_device_default.h ('k') | chromecast/media/cma/base/cast_decoder_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698