| 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/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 TaskRunnerTimer<VRDisplay> m_fullscreenCheckTimer; | 167 TaskRunnerTimer<VRDisplay> m_fullscreenCheckTimer; |
| 168 String m_fullscreenOrigWidth; | 168 String m_fullscreenOrigWidth; |
| 169 String m_fullscreenOrigHeight; | 169 String m_fullscreenOrigHeight; |
| 170 gpu::gles2::GLES2Interface* m_contextGL = nullptr; | 170 gpu::gles2::GLES2Interface* m_contextGL = nullptr; |
| 171 Member<WebGLRenderingContextBase> m_renderingContext; | 171 Member<WebGLRenderingContextBase> m_renderingContext; |
| 172 | 172 |
| 173 Member<ScriptedAnimationController> m_scriptedAnimationController; | 173 Member<ScriptedAnimationController> m_scriptedAnimationController; |
| 174 bool m_pendingRaf = false; | 174 bool m_pendingRaf = false; |
| 175 bool m_pendingVsync = false; | 175 bool m_pendingVsync = false; |
| 176 bool m_inAnimationFrame = false; | 176 bool m_inAnimationFrame = false; |
| 177 bool m_inDisplayActivate = false; |
| 177 bool m_displayBlurred = false; | 178 bool m_displayBlurred = false; |
| 178 bool m_reenteredFullscreen = false; | 179 bool m_reenteredFullscreen = false; |
| 179 double m_timebase = -1; | 180 double m_timebase = -1; |
| 180 | 181 |
| 181 device::mojom::blink::VRDisplayPtr m_display; | 182 device::mojom::blink::VRDisplayPtr m_display; |
| 182 | 183 |
| 183 mojo::Binding<device::mojom::blink::VRDisplayClient> m_displayClientBinding; | 184 mojo::Binding<device::mojom::blink::VRDisplayClient> m_displayClientBinding; |
| 184 device::mojom::blink::VRVSyncProviderPtr m_vrVSyncProvider; | 185 device::mojom::blink::VRVSyncProviderPtr m_vrVSyncProvider; |
| 185 | 186 |
| 186 HeapDeque<Member<ScriptPromiseResolver>> m_pendingPresentResolvers; | 187 HeapDeque<Member<ScriptPromiseResolver>> m_pendingPresentResolvers; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 204 RequestDenied = 12, | 205 RequestDenied = 12, |
| 205 FullscreenNotEnabled = 13, | 206 FullscreenNotEnabled = 13, |
| 206 PresentationResultMax, // Must be last member of enum. | 207 PresentationResultMax, // Must be last member of enum. |
| 207 }; | 208 }; |
| 208 | 209 |
| 209 void ReportPresentationResult(PresentationResult); | 210 void ReportPresentationResult(PresentationResult); |
| 210 | 211 |
| 211 } // namespace blink | 212 } // namespace blink |
| 212 | 213 |
| 213 #endif // VRDisplay_h | 214 #endif // VRDisplay_h |
| OLD | NEW |