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

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

Issue 730103002: Create "stream texture proxy" before "stream texture" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: qinmin's solution Created 6 years, 1 month 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 deb3417c3bd29a37e265987f8f6e33fb06dd2236..e6a97839d06d4b5e1fb211b528eef78957ce83b8 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -851,10 +851,10 @@ void WebMediaPlayerAndroid::OnVideoSizeChanged(int width, int height) {
needs_external_surface_ = true;
if (!paused() && !is_fullscreen_)
player_manager_->RequestExternalSurface(player_id_, last_computed_rect_);
- } else if (stream_texture_proxy_ && !stream_id_) {
+ } else if (!stream_texture_proxy_) {
// Do deferred stream texture creation finally.
- DoCreateStreamTexture();
SetNeedsEstablishPeer(true);
+ TryCreateStreamTextureProxyIfNeeded();
}
#endif // defined(VIDEO_HOLE)
natural_size_.width = width;
« 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