| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 134 void OnVSync(device::mojom::blink::VRPosePtr, |
| 135 mojo::common::mojom::blink::TimeDeltaPtr); | 135 mojo::common::mojom::blink::TimeDeltaPtr, |
| 136 int16_t frameId); |
| 136 void ConnectVSyncProvider(); | 137 void ConnectVSyncProvider(); |
| 137 | 138 |
| 138 ScriptedAnimationController& ensureScriptedAnimationController(Document*); | 139 ScriptedAnimationController& ensureScriptedAnimationController(Document*); |
| 139 | 140 |
| 140 Member<NavigatorVR> m_navigatorVR; | 141 Member<NavigatorVR> m_navigatorVR; |
| 141 unsigned m_displayId = 0; | 142 unsigned m_displayId = 0; |
| 142 String m_displayName; | 143 String m_displayName; |
| 143 bool m_isConnected = false; | 144 bool m_isConnected = false; |
| 144 bool m_isPresenting = false; | 145 bool m_isPresenting = false; |
| 145 bool m_isValidDeviceForPresenting = true; | 146 bool m_isValidDeviceForPresenting = true; |
| 146 Member<VRDisplayCapabilities> m_capabilities; | 147 Member<VRDisplayCapabilities> m_capabilities; |
| 147 Member<VRStageParameters> m_stageParameters; | 148 Member<VRStageParameters> m_stageParameters; |
| 148 Member<VREyeParameters> m_eyeParametersLeft; | 149 Member<VREyeParameters> m_eyeParametersLeft; |
| 149 Member<VREyeParameters> m_eyeParametersRight; | 150 Member<VREyeParameters> m_eyeParametersRight; |
| 150 device::mojom::blink::VRPosePtr m_framePose; | 151 device::mojom::blink::VRPosePtr m_framePose; |
| 152 int16_t m_frameId; |
| 151 VRLayer m_layer; | 153 VRLayer m_layer; |
| 152 double m_depthNear = 0.01; | 154 double m_depthNear = 0.01; |
| 153 double m_depthFar = 10000.0; | 155 double m_depthFar = 10000.0; |
| 154 | 156 |
| 155 void dispose(); | 157 void dispose(); |
| 156 | 158 |
| 157 Timer<VRDisplay> m_fullscreenCheckTimer; | 159 Timer<VRDisplay> m_fullscreenCheckTimer; |
| 158 String m_fullscreenOrigWidth; | 160 String m_fullscreenOrigWidth; |
| 159 String m_fullscreenOrigHeight; | 161 String m_fullscreenOrigHeight; |
| 160 gpu::gles2::GLES2Interface* m_contextGL = nullptr; | 162 gpu::gles2::GLES2Interface* m_contextGL = nullptr; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 ServiceInactive = 11, | 194 ServiceInactive = 11, |
| 193 RequestDenied = 12, | 195 RequestDenied = 12, |
| 194 PresentationResultMax, // Must be last member of enum. | 196 PresentationResultMax, // Must be last member of enum. |
| 195 }; | 197 }; |
| 196 | 198 |
| 197 void ReportPresentationResult(PresentationResult); | 199 void ReportPresentationResult(PresentationResult); |
| 198 | 200 |
| 199 } // namespace blink | 201 } // namespace blink |
| 200 | 202 |
| 201 #endif // VRDisplay_h | 203 #endif // VRDisplay_h |
| OLD | NEW |