Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(54)

Side by Side Diff: chrome/browser/android/vr_shell/vr_shell_gl.h

Issue 2941913002: WebVR: Fix missing sample collection for prediction timing (Closed)
Patch Set: Rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698