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

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRDisplay.h

Issue 2550803002: WebVR: avoid race conditions for partially-initialized display (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « device/vr/android/gvr/gvr_device.cc ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VRDisplay_h 5 #ifndef VRDisplay_h
6 #define VRDisplay_h 6 #define VRDisplay_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/Document.h" 9 #include "core/dom/Document.h"
10 #include "core/dom/FrameRequestCallback.h" 10 #include "core/dom/FrameRequestCallback.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void OnActivate(device::mojom::blink::VRDisplayEventReason) override; 119 void OnActivate(device::mojom::blink::VRDisplayEventReason) override;
120 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; 120 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override;
121 121
122 ScriptedAnimationController& ensureScriptedAnimationController(Document*); 122 ScriptedAnimationController& ensureScriptedAnimationController(Document*);
123 123
124 Member<NavigatorVR> m_navigatorVR; 124 Member<NavigatorVR> m_navigatorVR;
125 unsigned m_displayId; 125 unsigned m_displayId;
126 String m_displayName; 126 String m_displayName;
127 bool m_isConnected; 127 bool m_isConnected;
128 bool m_isPresenting; 128 bool m_isPresenting;
129 bool m_isValidDeviceForPresenting;
129 bool m_canUpdateFramePose; 130 bool m_canUpdateFramePose;
130 Member<VRDisplayCapabilities> m_capabilities; 131 Member<VRDisplayCapabilities> m_capabilities;
131 Member<VRStageParameters> m_stageParameters; 132 Member<VRStageParameters> m_stageParameters;
132 Member<VREyeParameters> m_eyeParametersLeft; 133 Member<VREyeParameters> m_eyeParametersLeft;
133 Member<VREyeParameters> m_eyeParametersRight; 134 Member<VREyeParameters> m_eyeParametersRight;
134 device::mojom::blink::VRPosePtr m_framePose; 135 device::mojom::blink::VRPosePtr m_framePose;
135 VRLayer m_layer; 136 VRLayer m_layer;
136 double m_depthNear; 137 double m_depthNear;
137 double m_depthFar; 138 double m_depthFar;
138 139
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 ServiceInactive = 11, 172 ServiceInactive = 11,
172 RequestDenied = 12, 173 RequestDenied = 12,
173 PresentationResultMax, // Must be last member of enum. 174 PresentationResultMax, // Must be last member of enum.
174 }; 175 };
175 176
176 void ReportPresentationResult(PresentationResult); 177 void ReportPresentationResult(PresentationResult);
177 178
178 } // namespace blink 179 } // namespace blink
179 180
180 #endif // VRDisplay_h 181 #endif // VRDisplay_h
OLDNEW
« no previous file with comments | « device/vr/android/gvr/gvr_device.cc ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698