diff options
author | wonsik@chromium.org <wonsik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-07 08:23:57 +0000 |
---|---|---|
committer | wonsik@chromium.org <wonsik@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-07 08:23:57 +0000 |
commit | a3be04bdaab865ad66f45c3f8a1c433ec596fefc (patch) | |
tree | 4ba66a772fbd9b432766f13c05a9e0e0bff5f461 /webkit/media | |
parent | 85bbf09119661731bdc0138a67a97a3b9c1b2706 (diff) | |
download | chromium_src-a3be04bdaab865ad66f45c3f8a1c433ec596fefc.zip chromium_src-a3be04bdaab865ad66f45c3f8a1c433ec596fefc.tar.gz chromium_src-a3be04bdaab865ad66f45c3f8a1c433ec596fefc.tar.bz2 |
Notify geometry when requesting for external surface
The browser process may not be aware of geometry of the requesting
media player, so notify the browser processs when requesting for an
external surface.
BUG=236363
R=qinmin@chromium.org,scherkus@chromium.org
Review URL: https://chromiumcodereview.appspot.com/14650003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198668 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/media')
-rw-r--r-- | webkit/media/android/webmediaplayer_android.cc | 4 | ||||
-rw-r--r-- | webkit/media/android/webmediaplayer_proxy_android.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/webkit/media/android/webmediaplayer_android.cc b/webkit/media/android/webmediaplayer_android.cc index 7907512..8f0cdb0 100644 --- a/webkit/media/android/webmediaplayer_android.cc +++ b/webkit/media/android/webmediaplayer_android.cc @@ -141,7 +141,7 @@ void WebMediaPlayerAndroid::play() { if (hasVideo() && needs_external_surface_) { DCHECK(!needs_establish_peer_); if (proxy_) - proxy_->RequestExternalSurface(player_id_); + proxy_->RequestExternalSurface(player_id_, last_computed_rect_); } #endif if (hasVideo() && needs_establish_peer_) @@ -471,7 +471,7 @@ void WebMediaPlayerAndroid::OnVideoSizeChanged(int width, int height) { needs_external_surface_ = true; SetNeedsEstablishPeer(false); if (!paused() && proxy_) - proxy_->RequestExternalSurface(player_id_); + proxy_->RequestExternalSurface(player_id_, last_computed_rect_); } #endif diff --git a/webkit/media/android/webmediaplayer_proxy_android.h b/webkit/media/android/webmediaplayer_proxy_android.h index bc29479..a1c4277b 100644 --- a/webkit/media/android/webmediaplayer_proxy_android.h +++ b/webkit/media/android/webmediaplayer_proxy_android.h @@ -51,7 +51,8 @@ class WebMediaPlayerProxyAndroid { #if defined(GOOGLE_TV) // Request an external surface for out-of-band compositing. - virtual void RequestExternalSurface(int player_id) = 0; + virtual void RequestExternalSurface(int player_id, + const gfx::RectF& geometry) = 0; // Inform the media source player that the demuxer is ready. virtual void DemuxerReady( |