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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 2439543003: Do not use overlays when VR shell is enabled. (Closed)
Patch Set: Pulled out both feature checks from WMPI, inverted logic to enable instead of disable Created 4 years 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: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index 6e01840d71c6e0e05129c139d91354fd04f2f4d9..45f2a92457a516b93cdb5c17fcf3d568fae5d7e6 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -207,6 +207,7 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
PipelineStatus status);
gfx::Size GetCanvasSize() const;
void SetDeviceScaleFactor(float scale_factor);
+ void SetEnableFullscreenOverlays(bool disable_overlays);
mthiesse 2016/12/14 16:08:19 Does it makes sense to have a function for this? L
amp 2016/12/14 18:15:04 After the inversion and pulling out the other feat
liberato (no reviews please) 2016/12/14 19:39:07 i find adding booleans in the constructor to be er
amp 2016/12/14 22:02:09 Done. Going with a setter in latest patch.
void setPoster(const blink::WebURL& poster) override;
void SetUseFallbackPath(bool use_fallback_path);
#endif
@@ -535,9 +536,9 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
// Force to use SurfaceView instead of SurfaceTexture on Android.
bool force_video_overlays_;
- // Prevent use of SurfaceView on Android. (Ignored when
+ // Allow use of SurfaceView on Android. (Ignored when
// |force_video_overlays_| is true.)
- bool disable_fullscreen_video_overlays_;
+ bool enable_fullscreen_video_overlays_;
// Suppresses calls to OnPipelineError() after destruction / shutdown has been
// started; prevents us from spuriously logging errors that are transient or

Powered by Google App Engine
This is Rietveld 408576698