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 071845d859d1f31f6eb763585168001afbf5ab84..bf290b71229ca958d8c356398b03be1238f6589e 100644 |
--- a/content/renderer/media/android/webmediaplayer_android.h |
+++ b/content/renderer/media/android/webmediaplayer_android.h |
@@ -266,9 +266,12 @@ |
void TryCreateStreamTextureProxyIfNeeded(); |
void DoCreateStreamTexture(); |
- // This method is meant to be idempotent. Should be called whenever any of |
- // conditions changes and it is ok to establish peer. |
- void EstablishSurfaceTexturePeerIfNeeded(); |
+ // Helper method to reestablish the surface texture peer for android |
+ // media player. |
+ void EstablishSurfaceTexturePeer(); |
+ |
+ // Requesting whether the surface texture peer needs to be reestablished. |
+ void SetNeedsEstablishPeer(bool needs_establish_peer); |
private: |
void InitializePlayer(const GURL& url, |
@@ -405,14 +408,7 @@ |
bool is_playing_; |
// Whether media player needs to re-establish the surface texture peer. |
- // This should be unset in EstablishSurfaceTexturePeerIfNeeded() only, and set |
- // we believe peer is disconnected that we need to establish it again. |
- // Setting this should not be conditioned on additional state, eg playing |
- // or full screen. |
bool needs_establish_peer_; |
- |
- // This is a helper state used in EstablishSurfaceTexturePeerIfNeeded(). |
- bool in_fullscreen_; |
// Whether |stream_texture_proxy_| is initialized. |
bool stream_texture_proxy_initialized_; |