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

Unified Diff: chromecast/public/media/video_pipeline_device.h

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
« no previous file with comments | « chromecast/public/media/media_pipeline_device_params.h ('k') | chromecast/renderer/media/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/public/media/video_pipeline_device.h
diff --git a/chromecast/public/media/video_pipeline_device.h b/chromecast/public/media/video_pipeline_device.h
deleted file mode 100644
index 1019ec387dbef0388e5121796c5a951f7809b222..0000000000000000000000000000000000000000
--- a/chromecast/public/media/video_pipeline_device.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// 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.
-
-#ifndef CHROMECAST_PUBLIC_MEDIA_VIDEO_PIPELINE_DEVICE_H_
-#define CHROMECAST_PUBLIC_MEDIA_VIDEO_PIPELINE_DEVICE_H_
-
-#include "media_component_device.h"
-
-namespace chromecast {
-struct Size;
-
-namespace media {
-struct VideoConfig;
-
-// Interface for platform-specific video pipeline backend.
-// See comments on MediaComponentDevice.
-//
-// Notes:
-// - Like a regular MediaComponentDevice, frames are possibly rendered only
-// in the kRunning state.
-// However, the first frame must be rendered regardless of the clock state:
-// - no synchronization needed to display the first frame,
-// - the clock rate has no impact on the presentation of the first frame.
-class VideoPipelineDevice : public MediaComponentDevice {
- public:
- // Callback interface for natural size of video changing.
- class VideoClient {
- public:
- virtual ~VideoClient() {}
- virtual void OnNaturalSizeChanged(const Size& size) = 0;
- };
-
- ~VideoPipelineDevice() override {}
-
- // Registers |client| as the video specific event handler.
- // Implementation takes ownership of |client|.
- virtual void SetVideoClient(VideoClient* client) = 0;
-
- // Provides the video configuration.
- // Called before switching from |kStateUninitialized| to |kStateIdle|.
- // Afterwards, this can be invoked any time the configuration changes.
- // Returns true if the configuration is a supported configuration.
- virtual bool SetConfig(const VideoConfig& config) = 0;
-};
-
-} // namespace media
-} // namespace chromecast
-
-#endif // CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PIPELINE_DEVICE_H_
« no previous file with comments | « chromecast/public/media/media_pipeline_device_params.h ('k') | chromecast/renderer/media/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698