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

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

Issue 149273005: Remove the logic to recreate stream texture for MSE video (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 ef498c9b3de5b979b2be7dd6c2c5b25844dac89f..2dae6c6d651d1c2fc3705f7f0060131680f44c0a 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -1032,18 +1032,6 @@ void WebMediaPlayerAndroid::EstablishSurfaceTexturePeer() {
if (!stream_texture_proxy_)
return;
- if (media_source_delegate_ && stream_texture_factory_) {
- // MediaCodec will release the old surface when it goes away, we need to
- // recreate a new one each time this is called.
- stream_texture_factory_->DestroyStreamTexture(texture_id_);
- stream_id_ = 0;
- texture_id_ = 0;
- texture_mailbox_ = gpu::Mailbox();
- texture_mailbox_sync_point_ = 0;
- DoCreateStreamTexture();
- ReallocateVideoFrame();
- stream_texture_proxy_initialized_ = false;
- }
if (stream_texture_factory_.get() && stream_id_)
stream_texture_factory_->EstablishPeer(stream_id_, player_id_);
needs_establish_peer_ = false;
« 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