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

Unified Diff: third_party/WebKit/Source/modules/vr/VRDisplay.h

Issue 2665293002: Only send vrdisplayactivate events to focused frames (Closed)
Patch Set: Rebase + add comments Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/vr/VRDisplay.h
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.h b/third_party/WebKit/Source/modules/vr/VRDisplay.h
index f81dd2bf83180ac552076138c700fcda296bf06f..2f0d66a66fb2ef6511b8ea4d6e75901d30cf71e3 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.h
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.h
@@ -150,7 +150,11 @@ class VRDisplay final : public EventTargetWithInlineData,
Member<VREyeParameters> m_eyeParametersLeft;
Member<VREyeParameters> m_eyeParametersRight;
device::mojom::blink::VRPosePtr m_framePose;
- int16_t m_frameId = -1;
+
+ // This frame ID is vr-specific and is used to track when frames arrive at the
+ // VR compositor so that it knows which poses to use, when to apply bounds
+ // updates, etc.
+ int16_t m_vrFrameId = -1;
VRLayer m_layer;
double m_depthNear = 0.01;
double m_depthFar = 10000.0;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698