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

Unified Diff: media/blink/webmediaplayer_impl.h

Issue 2439543003: Do not use overlays when VR shell is enabled. (Closed)
Patch Set: Created 4 years, 2 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: media/blink/webmediaplayer_impl.h
diff --git a/media/blink/webmediaplayer_impl.h b/media/blink/webmediaplayer_impl.h
index 729d41ec4334c2d0b0c9ab65c59daad4e9fb77ef..f73cc90225cfe131da482d16baa190f9aa7ee12c 100644
--- a/media/blink/webmediaplayer_impl.h
+++ b/media/blink/webmediaplayer_impl.h
@@ -204,7 +204,9 @@ class MEDIA_BLINK_EXPORT WebMediaPlayerImpl
void DisplayCastFrameAfterSuspend(const scoped_refptr<VideoFrame>& new_frame,
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
@@ -534,6 +536,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