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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 void Dispose(); | 172 void Dispose(); |
173 | 173 |
174 gpu::gles2::GLES2Interface* context_gl_ = nullptr; | 174 gpu::gles2::GLES2Interface* context_gl_ = nullptr; |
175 Member<WebGLRenderingContextBase> rendering_context_; | 175 Member<WebGLRenderingContextBase> rendering_context_; |
176 | 176 |
177 // Used to keep the image alive until the next frame if using | 177 // Used to keep the image alive until the next frame if using |
178 // waitForPreviousTransferToFinish. | 178 // waitForPreviousTransferToFinish. |
179 RefPtr<Image> previous_image_; | 179 RefPtr<Image> previous_image_; |
180 | 180 |
181 Member<ScriptedAnimationController> scripted_animation_controller_; | 181 Member<ScriptedAnimationController> scripted_animation_controller_; |
182 bool pending_raf_ = false; | 182 bool pending_vrdisplay_raf_ = false; |
183 bool pending_vsync_ = false; | 183 bool pending_vsync_ = false; |
184 bool in_animation_frame_ = false; | 184 bool in_animation_frame_ = false; |
185 bool in_display_activate_ = false; | 185 bool in_display_activate_ = false; |
186 bool display_blurred_ = false; | 186 bool display_blurred_ = false; |
187 double timebase_ = -1; | 187 double timebase_ = -1; |
188 bool pending_previous_frame_render_ = false; | 188 bool pending_previous_frame_render_ = false; |
189 bool pending_submit_frame_ = false; | 189 bool pending_submit_frame_ = false; |
190 bool v_sync_connection_failed_ = false; | 190 bool v_sync_connection_failed_ = false; |
191 | 191 |
192 device::mojom::blink::VRDisplayPtr display_; | 192 device::mojom::blink::VRDisplayPtr display_; |
(...skipping 24 matching lines...) Expand all Loading... |
217 kRequestDenied = 12, | 217 kRequestDenied = 12, |
218 kFullscreenNotEnabled = 13, | 218 kFullscreenNotEnabled = 13, |
219 kPresentationResultMax, // Must be last member of enum. | 219 kPresentationResultMax, // Must be last member of enum. |
220 }; | 220 }; |
221 | 221 |
222 void ReportPresentationResult(PresentationResult); | 222 void ReportPresentationResult(PresentationResult); |
223 | 223 |
224 } // namespace blink | 224 } // namespace blink |
225 | 225 |
226 #endif // VRDisplay_h | 226 #endif // VRDisplay_h |
OLD | NEW |