Index: webkit/media/android/webmediaplayer_android.h |
diff --git a/webkit/media/android/webmediaplayer_android.h b/webkit/media/android/webmediaplayer_android.h |
index 58d0d779eb0291b198dd82faaedc66f69a3d9d47..e591dad4f6363adb137b8e3942f7f62cd3e21f55 100644 |
--- a/webkit/media/android/webmediaplayer_android.h |
+++ b/webkit/media/android/webmediaplayer_android.h |
@@ -174,6 +174,12 @@ class WebMediaPlayerAndroid |
WebMediaPlayerManagerAndroid* manager() const { return manager_; } |
+ // Request whether the player needs external surface for rendering. |
+ void SetNeedsExternalSurface(bool needs_external_surface); |
+ |
+ // Request external surface for out-of-band composition. |
+ virtual void RequestExternalSurface() = 0; |
+ |
private: |
void ReallocateVideoFrame(); |
@@ -238,6 +244,9 @@ class WebMediaPlayerAndroid |
// frame available. It should be initialized on the compositor thread. |
scoped_ptr<StreamTextureProxy> stream_texture_proxy_; |
+ // Whether media player needs external surface. |
+ bool needs_external_surface_; |
+ |
DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
}; |