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

Side by Side Diff: chromecast/media/cma/adapter/media_pipeline_backend_v1.h

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Add V1 adapter 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMECAST_PUBLIC_MEDIA_MEDIA_PIPELINE_BACKEND_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_ADAPTER_MEDIA_PIPELINE_BACKEND_V1_H_
6 #define CHROMECAST_PUBLIC_MEDIA_MEDIA_PIPELINE_BACKEND_H_ 6 #define CHROMECAST_MEDIA_CMA_ADAPTER_MEDIA_PIPELINE_BACKEND_V1_H_
7 7
8 namespace chromecast { 8 namespace chromecast {
9 namespace media { 9 namespace media {
10 10
11 class AudioPipelineDevice; 11 class AudioPipelineDevice;
12 class MediaClockDevice; 12 class MediaClockDevice;
13 struct MediaPipelineDeviceParams; 13 struct MediaPipelineDeviceParams;
14 class VideoPipelineDevice; 14 class VideoPipelineDevice;
15 15
16 // Interface for creating and managing ownership of platform-specific clock, 16 // Interface for creating and managing ownership of platform-specific clock,
17 // audio and video devices. cast_shell owns the MediaPipelineBackend for 17 // audio and video devices. cast_shell owns the MediaPipelineBackend for
18 // as long as it is needed; the implementation is responsible for 18 // as long as it is needed; the implementation is responsible for
19 // tearing down the individual components correctly when it is destroyed. 19 // tearing down the individual components correctly when it is destroyed.
20 // A new MediaPipelineBackend will be instantiated for each media player 20 // A new MediaPipelineBackend will be instantiated for each media player
21 // instance. 21 // instance.
22 class MediaPipelineBackend { 22 class MediaPipelineBackendV1 {
23 public: 23 public:
24 virtual ~MediaPipelineBackend() {} 24 virtual ~MediaPipelineBackendV1() {}
25 25
26 // Returns the platform-specific pipeline clock. 26 // Returns the platform-specific pipeline clock.
27 virtual MediaClockDevice* GetClock() = 0; 27 virtual MediaClockDevice* GetClock() = 0;
28 28
29 // Returns the platform-specific audio backend. 29 // Returns the platform-specific audio backend.
30 virtual AudioPipelineDevice* GetAudio() = 0; 30 virtual AudioPipelineDevice* GetAudio() = 0;
31 31
32 // Returns the platform-specific video backend. 32 // Returns the platform-specific video backend.
33 virtual VideoPipelineDevice* GetVideo() = 0; 33 virtual VideoPipelineDevice* GetVideo() = 0;
34 }; 34 };
35 35
36 } // namespace media 36 } // namespace media
37 } // namespace chromecast 37 } // namespace chromecast
38 38
39 #endif // CHROMECAST_MEDIA_CMA_BACKEND_MEDIA_PIPELINE_DEVICE_FACTORY_H_ 39 #endif // CHROMECAST_MEDIA_CMA_ADAPTER_MEDIA_PIPELINE_BACKEND_V1_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698