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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 2141293002: [Cast for ATV] Enable UMP on Cast for ATV (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unit tests Created 4 years, 5 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
« no previous file with comments | « media/base/media_switches.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index 4e3a42adcb3951afd2a0928bee50e9e373a748b8..edee39b72ecd923944efcf8947280af47f12a26e 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -232,6 +232,9 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
private:
friend class WebMediaPlayerImplTest;
+ void EnableOverlay();
+ void DisableOverlay();
+
void OnPipelineSuspended();
void OnDemuxerOpened();
@@ -429,10 +432,10 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
// changes.
bool should_notify_time_changed_;
- bool fullscreen_;
+ bool overlay_enabled_;
- // Whether the current decoder requires a restart on fullscreen transitions.
- bool decoder_requires_restart_for_fullscreen_;
+ // Whether the current decoder requires a restart on overlay transitions.
+ bool decoder_requires_restart_for_overlay_;
blink::WebMediaPlayerClient* client_;
blink::WebMediaPlayerEncryptedMediaClient* encrypted_client_;
@@ -505,14 +508,17 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
// For canceling ongoing surface creation requests when exiting fullscreen.
base::CancelableCallback<void(int)> surface_created_cb_;
- // The current fullscreen surface id. Populated while in fullscreen once the
+ // The current overlay surface id. Populated while in fullscreen once the
// surface is created.
- int fullscreen_surface_id_;
+ int overlay_surface_id_;
// If a surface is requested before it's finished being created, the request
// is saved and satisfied once the surface is available.
SurfaceCreatedCB pending_surface_request_cb_;
+ // Force to use SurfaceView instead of SurfaceTexture on Android.
+ bool force_video_overlays_;
+
// Suppresses calls to OnPipelineError() after destruction / shutdown has been
// started; prevents us from spuriously logging errors that are transient or
// unimportant.
« no previous file with comments | « media/base/media_switches.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698