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

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: rebase 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 4c306bac509b7d00f8bf510b08bf7eeb181efde8..2500086d68e98c15ff6531c9f6690f744865849d 100644
--- a/content/browser/android/media_player_manager_android.h
+++ b/content/browser/android/media_player_manager_android.h
@@ -19,6 +19,8 @@
namespace content {
+class WebContents;
+
// 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
@@ -62,6 +64,9 @@ class MediaPlayerManagerAndroid
// Release all the players managed by this object.
void DestroyAllMediaPlayers();
+ void AttachExternalVideoSurface(int player_id, jobject surface);
+ void DetachExternalVideoSurface(int player_id);
+
media::MediaPlayerBridge* GetFullscreenPlayer();
media::MediaPlayerBridge* GetPlayer(int player_id);
@@ -76,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_;
@@ -86,6 +92,8 @@ class MediaPlayerManagerAndroid
// Player ID of the fullscreen media player.
int fullscreen_player_id_;
+ WebContents* web_contents_;
+
DISALLOW_COPY_AND_ASSIGN(MediaPlayerManagerAndroid);
};
« no previous file with comments | « content/browser/android/content_view_core_impl.cc ('k') | content/browser/android/media_player_manager_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698