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

Unified Diff: content/browser/android/media_player_manager_android.h

Issue 12443003: Implement out-of-band video compositing on Android: Step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit2 Created 7 years, 9 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: content/browser/android/media_player_manager_android.h
diff --git a/content/browser/android/media_player_manager_android.h b/content/browser/android/media_player_manager_android.h
index 9e7dc4bc8e858902486a05bece92be711e986fc3..e9630e25854454f27e6b3d55273b253cb1174914 100644
--- a/content/browser/android/media_player_manager_android.h
+++ b/content/browser/android/media_player_manager_android.h
@@ -18,6 +18,8 @@
namespace content {
+class ExternalVideoSurfaceViewHolder;
+
// This class manages all the MediaPlayerBridge objects. It receives
// control operations from the the render process, and forwards
// them to corresponding MediaPlayerBridge object. Callbacks from
@@ -61,6 +63,10 @@ class MediaPlayerManagerAndroid
// Release all the players managed by this object.
void DestroyAllMediaPlayers();
+ // External surface video rendering.
+ void SetExternalVideoSurfaceViewHolder(
+ ExternalVideoSurfaceViewHolder* holder);
+
media::MediaPlayerBridge* GetFullscreenPlayer();
media::MediaPlayerBridge* GetPlayer(int player_id);
@@ -75,6 +81,7 @@ class MediaPlayerManagerAndroid
void OnPause(int player_id);
void OnReleaseResources(int player_id);
void OnDestroyPlayer(int player_id);
+ void OnRequestExternalSurface(int player_id);
// An array of managed players.
ScopedVector<media::MediaPlayerBridge> players_;
@@ -85,6 +92,11 @@ class MediaPlayerManagerAndroid
// Player ID of the fullscreen media player.
int fullscreen_player_id_;
+ // Player ID of the user of the external video surface.
+ int external_video_surface_user_id_;
ycheo 2013/03/14 09:45:52 IMO, it would be better that this variable is mana
wonsik 2013/03/14 10:57:01 Done.
+
+ ExternalVideoSurfaceViewHolder* external_video_surface_view_holder_;
+
DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid);
};

Powered by Google App Engine
This is Rietveld 408576698