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

Side by Side Diff: chromecast/public/cast_media_shlib.h

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix end_to_end test + address slan 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 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_CAST_MEDIA_SHLIB_H_ 5 #ifndef CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_
6 #define CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_ 6 #define CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 24 matching lines...) Expand all
35 // Tears down platform-specific media systems and returns to the uninitialized 35 // Tears down platform-specific media systems and returns to the uninitialized
36 // state. The implementation must release all media-related hardware 36 // state. The implementation must release all media-related hardware
37 // resources. 37 // resources.
38 static void Finalize(); 38 static void Finalize();
39 39
40 // Gets the VideoPlane instance for managing the hardware video plane. 40 // Gets the VideoPlane instance for managing the hardware video plane.
41 // While an implementation is in an initialized state, this function may be 41 // While an implementation is in an initialized state, this function may be
42 // called at any time. The VideoPlane object must be destroyed in Finalize. 42 // called at any time. The VideoPlane object must be destroyed in Finalize.
43 static VideoPlane* GetVideoPlane(); 43 static VideoPlane* GetVideoPlane();
44 44
45 // Creates a factory object for a media pipeline backend. Called in the 45 // Creates a media pipeline backend. Called in the browser process for each
46 // browser process, any number of times (once per media pipeline). Each call 46 // media pipeline and raw audio stream.
slan 2015/10/07 02:06:47 The caller owns the returned instance correct? Ple
kmackay 2015/10/07 16:37:58 Done.
47 // must instantiate a new factory object
48 static MediaPipelineBackend* CreateMediaPipelineBackend( 47 static MediaPipelineBackend* CreateMediaPipelineBackend(
49 const MediaPipelineDeviceParams& params); 48 const MediaPipelineDeviceParams& params);
50 }; 49 };
51 50
52 } // namespace media 51 } // namespace media
53 } // namespace chromecast 52 } // namespace chromecast
54 53
55 #endif // CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_ 54 #endif // CHROMECAST_PUBLIC_CAST_MEDIA_SHLIB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698