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

Unified Diff: content/public/browser/render_widget_host_view.h

Issue 2643893002: Skip video overlay surface management when in VR. (Closed)
Patch Set: Also send back no surface id when there is no web contents delegate. Created 3 years, 11 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: content/public/browser/render_widget_host_view.h
diff --git a/content/public/browser/render_widget_host_view.h b/content/public/browser/render_widget_host_view.h
index 71c693bf7c3c09c90b6df776d1afe9dff015fbf2..acff760e61672b70d2d9442c6fc10e2284779008 100644
--- a/content/public/browser/render_widget_host_view.h
+++ b/content/public/browser/render_widget_host_view.h
@@ -67,6 +67,9 @@ class CONTENT_EXPORT RenderWidgetHostView {
// Sets a flag that indicates if it is in virtual reality mode.
virtual void SetIsInVR(bool is_in_vr) = 0;
+ // Returns true if the current view is in virtual reality mode.
+ virtual bool IsInVR() const = 0;
Charlie Reis 2017/01/18 22:34:41 We can't add this to the public API unless there a
+
// Coordinate points received from a renderer process need to be transformed
// to the top-level frame's coordinate space. For coordinates received from
// the top-level frame's renderer this is a no-op as they are already
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698