Index: webkit/media/android/webmediaplayer_android.h |
diff --git a/webkit/media/android/webmediaplayer_android.h b/webkit/media/android/webmediaplayer_android.h |
index a0fb5bbaf78d3fd29ddf8f12c0f68367161cf033..db8c3b978bb83c0c812e5deda108abfa1dbcff4c 100644 |
--- a/webkit/media/android/webmediaplayer_android.h |
+++ b/webkit/media/android/webmediaplayer_android.h |
@@ -16,6 +16,7 @@ |
#include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" |
#include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayer.h" |
+#include "ui/gfx/rect_f.h" |
#include "webkit/media/android/stream_texture_factory_android.h" |
namespace webkit { |
@@ -132,6 +133,11 @@ class WebMediaPlayerAndroid |
// Detach the player from its manager. |
void Detach(); |
+ // Retrieve geometry of the media player (i.e. location and size of the video |
+ // frame) if changed. Returns true only if the geometry has been changed since |
+ // the last call. |
+ bool GetGeometryChange(gfx::RectF* rect); |
+ |
protected: |
// Construct a WebMediaPlayerAndroid object with reference to the |
// client, manager and stream texture factory. |
@@ -258,6 +264,10 @@ class WebMediaPlayerAndroid |
scoped_ptr<webkit::WebLayerImpl> video_weblayer_; |
+ // A rectangle represents the geometry of video frame, when computed last |
+ // time. |
+ gfx::RectF last_computed_rect_; |
+ |
DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
}; |