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

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

Issue 2192823004: Update StreamTextureProxy to accept a base::Closure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing comments Created 4 years, 5 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/renderer/media/android/webmediaplayer_android.h
diff --git a/content/renderer/media/android/webmediaplayer_android.h b/content/renderer/media/android/webmediaplayer_android.h
index 318956ffc901377c3df76f0f194b0ebdb07ff65f..7eef73e8b10978b54e46563f6200cdca360357d8 100644
--- a/content/renderer/media/android/webmediaplayer_android.h
+++ b/content/renderer/media/android/webmediaplayer_android.h
@@ -285,6 +285,13 @@ class WebMediaPlayerAndroid
bool IsKeySystemSupported(const std::string& key_system);
bool IsLocalResource();
+ // Called whenever we create a new StreamTextureProxy and had a VFP::Client,
+ // or when we get a new VFP::Client and had a StreamTextureProxy.
+ // Sets |stream_texture_proxy_|'s OnFrameAvailable() to call |client|'s
+ // DidReceiveFrame().
+ // Passing nullptr to this method will clear the previous callback.
+ void UpdateStreamTextureProxyCallback(cc::VideoFrameProvider::Client* client);
+
// Called when |cdm_context| is ready.
void OnCdmContextReady(media::CdmContext* cdm_context);

Powered by Google App Engine
This is Rietveld 408576698