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

Unified Diff: ui/display/display.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
« media/blink/webmediaplayer_impl.cc ('K') | « media/blink/webmediaplayer_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/display.h
diff --git a/ui/display/display.h b/ui/display/display.h
index b9d48b6c7ed74d16b9665a5f6a92e865e920e6a1..66d5d5b753468307fd3046e94b710b89f1faf43a 100644
--- a/ui/display/display.h
+++ b/ui/display/display.h
@@ -191,6 +191,13 @@ class DISPLAY_EXPORT Display final {
is_monochrome_ = is_monochrome;
}
+ // True if this is a virtual display (e.g, for vr).
+ bool in_vr() const { return true; }
+ void set_in_vr(bool in_vr) {
+ in_vr_ = in_vr;
+ }
+
+
private:
int64_t id_;
gfx::Rect bounds_;
@@ -203,6 +210,7 @@ class DISPLAY_EXPORT Display final {
int color_depth_;
int depth_per_component_;
bool is_monochrome_;
+ bool in_vr_;
#if !defined(OS_IOS)
friend struct mojo::StructTraits<display::mojom::DisplayDataView,
« media/blink/webmediaplayer_impl.cc ('K') | « media/blink/webmediaplayer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698