| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 UiElement* input_locked_element_ = nullptr; | 244 UiElement* input_locked_element_ = nullptr; |
| 245 bool in_scroll_ = false; | 245 bool in_scroll_ = false; |
| 246 bool in_click_ = false; | 246 bool in_click_ = false; |
| 247 | 247 |
| 248 int content_tex_css_width_ = 0; | 248 int content_tex_css_width_ = 0; |
| 249 int content_tex_css_height_ = 0; | 249 int content_tex_css_height_ = 0; |
| 250 gfx::Size content_tex_physical_size_ = {0, 0}; | 250 gfx::Size content_tex_physical_size_ = {0, 0}; |
| 251 gfx::Size webvr_surface_size_ = {0, 0}; | 251 gfx::Size webvr_surface_size_ = {0, 0}; |
| 252 | 252 |
| 253 std::vector<vr::Mat4f> webvr_head_pose_; | 253 std::vector<vr::Mat4f> webvr_head_pose_; |
| 254 std::vector<base::TimeTicks> webvr_time_pose_; |
| 255 std::vector<base::TimeTicks> webvr_time_js_submit_; |
| 254 bool web_vr_mode_; | 256 bool web_vr_mode_; |
| 255 bool ready_to_draw_ = false; | 257 bool ready_to_draw_ = false; |
| 256 bool surfaceless_rendering_; | 258 bool surfaceless_rendering_; |
| 257 bool daydream_support_; | 259 bool daydream_support_; |
| 258 | 260 |
| 259 std::unique_ptr<VrController> controller_; | 261 std::unique_ptr<VrController> controller_; |
| 260 | 262 |
| 261 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 263 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 262 base::CancelableClosure vsync_task_; | 264 base::CancelableClosure vsync_task_; |
| 263 base::TimeTicks vsync_timebase_; | 265 base::TimeTicks vsync_timebase_; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 289 gfx::Point3F pointer_start_; | 291 gfx::Point3F pointer_start_; |
| 290 | 292 |
| 291 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; | 293 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; |
| 292 | 294 |
| 293 DISALLOW_COPY_AND_ASSIGN(VrShellGl); | 295 DISALLOW_COPY_AND_ASSIGN(VrShellGl); |
| 294 }; | 296 }; |
| 295 | 297 |
| 296 } // namespace vr_shell | 298 } // namespace vr_shell |
| 297 | 299 |
| 298 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ | 300 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ |
| OLD | NEW |