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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_gl.h

Issue 2795793002: Implementation of elbow model for the controller position and rotation. (Closed)
Patch Set: Rebasing. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/vr_shell_gl.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.h b/chrome/browser/android/vr_shell/vr_shell_gl.h
index 8d3d2fcffd2c6e711d651b5b110ef78aea73e0f9..dc5cb88b697d54ea0364ddf7773cbd8d957b653c 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.h
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.h
@@ -130,8 +130,8 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
void DrawWebVr();
bool WebVrPoseByteIsValid(int pose_index_byte);
- void UpdateController();
- void HandleControllerInput(const gfx::Vector3dF& forward_vector);
+ void UpdateController(const gfx::Vector3dF& head_direction);
+ void HandleControllerInput(const gfx::Vector3dF& head_direction);
void HandleControllerAppButtonActivity(
const gfx::Vector3dF& controller_direction);
void SendEventsToTarget(InputTarget input_target, int pixel_x, int pixel_y);
@@ -233,6 +233,8 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
std::unique_ptr<FPSMeter> fps_meter_;
+ gfx::Point3F pointer_start_;
+
base::WeakPtrFactory<VrShellGl> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(VrShellGl);

Powered by Google App Engine
This is Rietveld 408576698