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

Unified Diff: content/browser/android/surface_texture_peer_browser_impl.cc

Issue 10979047: Upstream fullscreen video implementation for android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove some unused variables and make fullscreen video to work with content shell Created 8 years, 3 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/surface_texture_peer_browser_impl.cc
diff --git a/content/browser/android/surface_texture_peer_browser_impl.cc b/content/browser/android/surface_texture_peer_browser_impl.cc
index a68286df08b6e8fc247b8d5a5e9a6e6429f303ea..d0eef94e284583147e828a7d7b2a6a061375bea3 100644
--- a/content/browser/android/surface_texture_peer_browser_impl.cc
+++ b/content/browser/android/surface_texture_peer_browser_impl.cc
@@ -38,9 +38,9 @@ static void SetSurfacePeer(jobject j_surface,
if (host) {
media::MediaPlayerBridge* player =
host->media_player_manager()->GetPlayer(player_id);
- if (player) {
- player->SetVideoSurface(j_surface);
- }
+ if (player &&
+ player != host->media_player_manager()->GetFullscreenPlayer())
+ player->SetVideoSurface(j_surface);
scherkus (not reviewing) 2012/10/02 16:20:16 nit: if statements > 1 line need {}
qinmin 2012/10/03 02:32:48 Done.
}
}

Powered by Google App Engine
This is Rietveld 408576698