Index: webkit/media/android/webmediaplayer_android.h |
diff --git a/webkit/media/android/webmediaplayer_android.h b/webkit/media/android/webmediaplayer_android.h |
index 79fa6b856611d5c2d45464e16f2fa6d15f094304..bc76cf7b1ae97b7d6aa9f7c6e048035c0ada29a2 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 { |
@@ -140,6 +141,13 @@ class WebMediaPlayerAndroid |
// Detach the player from its manager. |
void Detach(); |
+#if defined(GOOGLE_TV) |
+ // 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); |
+#endif |
+ |
protected: |
// Construct a WebMediaPlayerAndroid object with reference to the |
// client, manager and stream texture factory. |
@@ -190,8 +198,10 @@ class WebMediaPlayerAndroid |
WebMediaPlayerManagerAndroid* manager() const { return manager_; } |
+#if defined(GOOGLE_TV) |
// Request external surface for out-of-band composition. |
virtual void RequestExternalSurface() = 0; |
+#endif |
private: |
void ReallocateVideoFrame(); |
@@ -266,6 +276,12 @@ class WebMediaPlayerAndroid |
scoped_ptr<webkit::WebLayerImpl> video_weblayer_; |
+#if defined(GOOGLE_TV) |
+ // A rectangle represents the geometry of video frame, when computed last |
+ // time. |
+ gfx::RectF last_computed_rect_; |
+#endif |
+ |
DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerAndroid); |
}; |