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

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

Issue 1257013003: Load CMA backend from shared library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Unit test + android fixes Created 5 years, 5 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/public/media/media_pipeline_backend.h
diff --git a/chromecast/public/media/media_pipeline_backend.h b/chromecast/public/media/media_pipeline_backend.h
new file mode 100644
index 0000000000000000000000000000000000000000..a643c00fa81081140a2dd322d3fbde4289ce3190
--- /dev/null
+++ b/chromecast/public/media/media_pipeline_backend.h
@@ -0,0 +1,35 @@
+// 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.
+
+#ifndef CHROMECAST_PUBLIC_MEDIA_MEDIA_PIPELINE_BACKEND_H_
+#define CHROMECAST_PUBLIC_MEDIA_MEDIA_PIPELINE_BACKEND_H_
+
+namespace chromecast {
+namespace media {
+
+class AudioPipelineDevice;
+class MediaClockDevice;
+class MediaPipelineDeviceParams;
+class VideoPipelineDevice;
+
+// Interface for creating and managing ownership of platform-specific clock,
+// audio and video devices. The pipeline owns the MediaPipelineBackend for
+// as long as they are needed and the implementation is responsible for
+// tearing down the individual components correctly when it is destroyed.
+// A new MediaPipelineBackend will be instantiated for each media player
+// instance.
+class MediaPipelineBackend {
+ public:
+ MediaPipelineBackend() {}
byungchul 2015/07/27 18:22:23 not necessary
halliwell 2015/07/28 02:19:36 removed.
+ virtual ~MediaPipelineBackend() {}
+
+ virtual MediaClockDevice* GetClock() = 0;
+ virtual AudioPipelineDevice* GetAudio() = 0;
+ virtual VideoPipelineDevice* GetVideo() = 0;
+};
+
+} // namespace media
+} // namespace chromecast
+
+#endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FACTORY_H_

Powered by Google App Engine
This is Rietveld 408576698