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

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

Issue 2460483002: RemoveSurfaceTextureAndProxy is not used. (Closed)
Patch Set: Created 4 years, 2 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 | « content/renderer/media/android/webmediaplayer_android.h ('k') | 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 2a38656ab6be6de1b38eebe2792234a1712bd711..dbfa2f4c967aa9a9569c60e06868a57728903b96 100644
--- a/content/renderer/media/android/webmediaplayer_android.cc
+++ b/content/renderer/media/android/webmediaplayer_android.cc
@@ -1103,22 +1103,6 @@ scoped_refptr<media::VideoFrame> WebMediaPlayerAndroid::GetCurrentFrame() {
void WebMediaPlayerAndroid::PutCurrentFrame() {
}
-void WebMediaPlayerAndroid::RemoveSurfaceTextureAndProxy() {
- DCHECK(main_thread_checker_.CalledOnValidThread());
-
- if (texture_id_) {
- GLES2Interface* gl = stream_texture_factory_->ContextGL();
- gl->DeleteTextures(1, &texture_id_);
- // Flush to ensure that the stream texture gets deleted in a timely fashion.
- gl->ShallowFlushCHROMIUM();
- texture_id_ = 0;
- texture_mailbox_ = gpu::Mailbox();
- }
- stream_texture_proxy_.reset();
- needs_establish_peer_ =
- !is_remote_ && !is_fullscreen_ && (hasVideo() || IsHLSStream());
-}
-
void WebMediaPlayerAndroid::UpdateStreamTextureProxyCallback(
cc::VideoFrameProvider::Client* client) {
base::Closure frame_received_cb;
« no previous file with comments | « content/renderer/media/android/webmediaplayer_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698