| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 Member<WebGLRenderingContextBase> m_renderingContext; | 178 Member<WebGLRenderingContextBase> m_renderingContext; |
| 179 | 179 |
| 180 // Used to keep the image alive until the next frame if using | 180 // Used to keep the image alive until the next frame if using |
| 181 // waitForPreviousTransferToFinish. | 181 // waitForPreviousTransferToFinish. |
| 182 RefPtr<Image> m_previousImage; | 182 RefPtr<Image> m_previousImage; |
| 183 | 183 |
| 184 Member<ScriptedAnimationController> m_scriptedAnimationController; | 184 Member<ScriptedAnimationController> m_scriptedAnimationController; |
| 185 bool m_pendingRaf = false; | 185 bool m_pendingRaf = false; |
| 186 bool m_pendingVsync = false; | 186 bool m_pendingVsync = false; |
| 187 bool m_inAnimationFrame = false; | 187 bool m_inAnimationFrame = false; |
| 188 bool m_inDisplayActivate = false; |
| 188 bool m_displayBlurred = false; | 189 bool m_displayBlurred = false; |
| 189 double m_timebase = -1; | 190 double m_timebase = -1; |
| 190 bool m_pendingPreviousFrameRender = false; | 191 bool m_pendingPreviousFrameRender = false; |
| 191 bool m_pendingSubmitFrame = false; | 192 bool m_pendingSubmitFrame = false; |
| 192 | 193 |
| 193 device::mojom::blink::VRDisplayPtr m_display; | 194 device::mojom::blink::VRDisplayPtr m_display; |
| 194 | 195 |
| 195 mojo::Binding<device::mojom::blink::VRSubmitFrameClient> | 196 mojo::Binding<device::mojom::blink::VRSubmitFrameClient> |
| 196 m_submit_frame_client_binding; | 197 m_submit_frame_client_binding; |
| 197 mojo::Binding<device::mojom::blink::VRDisplayClient> m_displayClientBinding; | 198 mojo::Binding<device::mojom::blink::VRDisplayClient> m_displayClientBinding; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 218 RequestDenied = 12, | 219 RequestDenied = 12, |
| 219 FullscreenNotEnabled = 13, | 220 FullscreenNotEnabled = 13, |
| 220 PresentationResultMax, // Must be last member of enum. | 221 PresentationResultMax, // Must be last member of enum. |
| 221 }; | 222 }; |
| 222 | 223 |
| 223 void ReportPresentationResult(PresentationResult); | 224 void ReportPresentationResult(PresentationResult); |
| 224 | 225 |
| 225 } // namespace blink | 226 } // namespace blink |
| 226 | 227 |
| 227 #endif // VRDisplay_h | 228 #endif // VRDisplay_h |
| OLD | NEW |