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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 2439543003: Do not use overlays when VR shell is enabled. (Closed)
Patch Set: Minor style adjustments 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..e1606b0d37165ac5e8c7ec37700975f2d756e310 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 SetInVr(bool in_vr);
void setPoster(const blink::WebURL& poster) override;
void SetUseFallbackPath(bool use_fallback_path);
#endif
@@ -539,6 +540,10 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
// |force_video_overlays_| is true.)
bool disable_fullscreen_video_overlays_;
+ // Prevent use of SurfaceView on Android. (Overrides
+ // |force_video_overlays_|.)
+ bool in_vr_;
+
// Suppresses calls to OnPipelineError() after destruction / shutdown has been
// started; prevents us from spuriously logging errors that are transient or
// unimportant.

Powered by Google App Engine
This is Rietveld 408576698