| 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 CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ |
| 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ | 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 bool surfaceless_rendering_; | 245 bool surfaceless_rendering_; |
| 246 bool daydream_support_; | 246 bool daydream_support_; |
| 247 | 247 |
| 248 std::unique_ptr<VrController> controller_; | 248 std::unique_ptr<VrController> controller_; |
| 249 | 249 |
| 250 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 250 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 251 base::CancelableClosure vsync_task_; | 251 base::CancelableClosure vsync_task_; |
| 252 base::TimeTicks vsync_timebase_; | 252 base::TimeTicks vsync_timebase_; |
| 253 base::TimeDelta vsync_interval_; | 253 base::TimeDelta vsync_interval_; |
| 254 | 254 |
| 255 base::TimeDelta pending_time_; | |
| 256 bool pending_vsync_ = false; | 255 bool pending_vsync_ = false; |
| 257 GetVSyncCallback callback_; | 256 GetVSyncCallback callback_; |
| 258 bool received_frame_ = false; | 257 bool received_frame_ = false; |
| 259 mojo::Binding<device::mojom::VRVSyncProvider> binding_; | 258 mojo::Binding<device::mojom::VRVSyncProvider> binding_; |
| 260 device::mojom::VRSubmitFrameClientPtr submit_client_; | 259 device::mojom::VRSubmitFrameClientPtr submit_client_; |
| 261 | 260 |
| 262 VrBrowserInterface* browser_; | 261 VrBrowserInterface* browser_; |
| 263 | 262 |
| 264 UiScene* scene_ = nullptr; | 263 UiScene* scene_ = nullptr; |
| 265 | 264 |
| 266 uint8_t frame_index_ = 0; | 265 uint8_t frame_index_ = 0; |
| 267 // Larger than frame_index_ so it can be initialized out-of-band. | 266 // Larger than frame_index_ so it can be initialized out-of-band. |
| 268 uint16_t last_frame_index_ = -1; | 267 uint16_t last_frame_index_ = -1; |
| 269 | 268 |
| 270 // Attributes for gesture detection while holding app button. | 269 // Attributes for gesture detection while holding app button. |
| 271 gfx::Vector3dF controller_start_direction_; | 270 gfx::Vector3dF controller_start_direction_; |
| 272 | 271 |
| 273 std::unique_ptr<FPSMeter> fps_meter_; | 272 std::unique_ptr<FPSMeter> fps_meter_; |
| 274 | 273 |
| 275 gfx::Point3F pointer_start_; | 274 gfx::Point3F pointer_start_; |
| 276 | 275 |
| 277 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; | 276 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; |
| 278 | 277 |
| 279 DISALLOW_COPY_AND_ASSIGN(VrShellGl); | 278 DISALLOW_COPY_AND_ASSIGN(VrShellGl); |
| 280 }; | 279 }; |
| 281 | 280 |
| 282 } // namespace vr_shell | 281 } // namespace vr_shell |
| 283 | 282 |
| 284 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ | 283 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ |
| OLD | NEW |