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

Unified Diff: content/renderer/media/android/webmediaplayer_android.cc

Issue 1212823003: Recover from timing problem at exit of video-fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/android/webmediaplayer_android.cc
diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc
index e4b6fb0d731f857fea72d99788efd564223bda66..f1597fbdad701e022d85beb7f6fa94f1a0ca250b 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -948,8 +948,10 @@ void WebMediaPlayerAndroid::OnDidExitFullscreen() {
SetNeedsEstablishPeer(true);
// We had the fullscreen surface connected to Android MediaPlayer,
// so reconnect our surface texture for embedded playback.
- if (!paused() && needs_establish_peer_)
+ if (!paused() && needs_establish_peer_) {
+ TryCreateStreamTextureProxyIfNeeded();
boliu 2015/07/06 18:34:20 how would this help if the problem is needs_establ
Hugo Holgersson 2015/07/06 20:53:53 At this point, here in OnDidExitFullscreen(), need
boliu 2015/07/06 21:05:48 Ahh, ok. Then the more correct fix is to create a
Hugo Holgersson 2015/07/06 22:30:46 Hmm. I don't quite understand. SynchronousComposit
boliu 2015/07/06 23:33:21 I meant RestoreContextOnMainThread will call a dif
Hugo Holgersson 2015/07/08 13:23:50 If that method ignores needs_establish_peer_ it mi
boliu 2015/07/08 15:26:29 It could recreate only if there is already an exis
EstablishSurfaceTexturePeer();
+ }
#if defined(VIDEO_HOLE)
if (!paused() && needs_external_surface_)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698