| OLD | NEW |
| 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 "core/dom/Document.h" | 8 #include "core/dom/Document.h" |
| 9 #include "core/dom/FrameRequestCallback.h" | 9 #include "core/dom/FrameRequestCallback.h" |
| 10 #include "core/dom/TaskRunnerHelper.h" | 10 #include "core/dom/TaskRunnerHelper.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 void OnPresentChange(); | 124 void OnPresentChange(); |
| 125 | 125 |
| 126 // VRDisplayClient | 126 // VRDisplayClient |
| 127 void OnChanged(device::mojom::blink::VRDisplayInfoPtr) override; | 127 void OnChanged(device::mojom::blink::VRDisplayInfoPtr) override; |
| 128 void OnExitPresent() override; | 128 void OnExitPresent() override; |
| 129 void OnBlur() override; | 129 void OnBlur() override; |
| 130 void OnFocus() override; | 130 void OnFocus() override; |
| 131 void OnActivate(device::mojom::blink::VRDisplayEventReason) override; | 131 void OnActivate(device::mojom::blink::VRDisplayEventReason) override; |
| 132 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; | 132 void OnDeactivate(device::mojom::blink::VRDisplayEventReason) override; |
| 133 | 133 |
| 134 void OnVSync(device::mojom::blink::VRPosePtr, double timeSeconds); | 134 void OnVSync(device::mojom::blink::VRPosePtr, |
| 135 double timeSeconds, |
| 136 int16_t frameId); |
| 135 void OnVSyncProviderDisconnected(); | 137 void OnVSyncProviderDisconnected(); |
| 136 void ConnectVSyncProvider(); | 138 void ConnectVSyncProvider(); |
| 137 | 139 |
| 138 ScriptedAnimationController& ensureScriptedAnimationController(Document*); | 140 ScriptedAnimationController& ensureScriptedAnimationController(Document*); |
| 139 | 141 |
| 140 Member<NavigatorVR> m_navigatorVR; | 142 Member<NavigatorVR> m_navigatorVR; |
| 141 unsigned m_displayId = 0; | 143 unsigned m_displayId = 0; |
| 142 String m_displayName; | 144 String m_displayName; |
| 143 bool m_isConnected = false; | 145 bool m_isConnected = false; |
| 144 bool m_isPresenting = false; | 146 bool m_isPresenting = false; |
| 145 bool m_isValidDeviceForPresenting = true; | 147 bool m_isValidDeviceForPresenting = true; |
| 146 Member<VRDisplayCapabilities> m_capabilities; | 148 Member<VRDisplayCapabilities> m_capabilities; |
| 147 Member<VRStageParameters> m_stageParameters; | 149 Member<VRStageParameters> m_stageParameters; |
| 148 Member<VREyeParameters> m_eyeParametersLeft; | 150 Member<VREyeParameters> m_eyeParametersLeft; |
| 149 Member<VREyeParameters> m_eyeParametersRight; | 151 Member<VREyeParameters> m_eyeParametersRight; |
| 150 device::mojom::blink::VRPosePtr m_framePose; | 152 device::mojom::blink::VRPosePtr m_framePose; |
| 153 int16_t m_frameId; |
| 151 VRLayer m_layer; | 154 VRLayer m_layer; |
| 152 double m_depthNear = 0.01; | 155 double m_depthNear = 0.01; |
| 153 double m_depthFar = 10000.0; | 156 double m_depthFar = 10000.0; |
| 154 | 157 |
| 155 void dispose(); | 158 void dispose(); |
| 156 | 159 |
| 157 Timer<VRDisplay> m_fullscreenCheckTimer; | 160 Timer<VRDisplay> m_fullscreenCheckTimer; |
| 158 String m_fullscreenOrigWidth; | 161 String m_fullscreenOrigWidth; |
| 159 String m_fullscreenOrigHeight; | 162 String m_fullscreenOrigHeight; |
| 160 gpu::gles2::GLES2Interface* m_contextGL = nullptr; | 163 gpu::gles2::GLES2Interface* m_contextGL = nullptr; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 191 ServiceInactive = 11, | 194 ServiceInactive = 11, |
| 192 RequestDenied = 12, | 195 RequestDenied = 12, |
| 193 PresentationResultMax, // Must be last member of enum. | 196 PresentationResultMax, // Must be last member of enum. |
| 194 }; | 197 }; |
| 195 | 198 |
| 196 void ReportPresentationResult(PresentationResult); | 199 void ReportPresentationResult(PresentationResult); |
| 197 | 200 |
| 198 } // namespace blink | 201 } // namespace blink |
| 199 | 202 |
| 200 #endif // VRDisplay_h | 203 #endif // VRDisplay_h |
| OLD | NEW |