Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: webkit/media/android/webmediaplayer_android.h

Issue 11442056: Add external surface rendering mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separated GLRenderer change out; refined messaging scheme. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..c707ae5f4e76d9727535d62e731603f875917436 100644
--- a/webkit/media/android/webmediaplayer_android.h
+++ b/webkit/media/android/webmediaplayer_android.h
@@ -146,6 +146,10 @@ class WebMediaPlayerAndroid
// Requesting whether the surface texture peer needs to be reestablished.
virtual void SetNeedsEstablishPeer(bool needs_establish_peer);
+ // Method called by the implementation classes to set whether the player is
+ // displayed to an external surface.
+ void SetIsInVideoView(bool is_in_video_view);
+
// Method to be implemented by child classes.
// Initialize the media player bridge object.
virtual void InitializeMediaPlayer(GURL url) = 0;
@@ -231,6 +235,9 @@ class WebMediaPlayerAndroid
// Whether the video size info is available.
bool has_size_info_;
+ // Whether the player is rendered to an external surface.
+ bool is_in_video_view_;
+
// Object for allocating stream textures.
scoped_ptr<StreamTextureFactory> stream_texture_factory_;
« no previous file with comments | « content/renderer/media/webmediaplayer_proxy_impl_android.cc ('k') | webkit/media/android/webmediaplayer_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698