| Index: chrome/browser/android/vr_shell/vr_controller.h
|
| diff --git a/chrome/browser/android/vr_shell/vr_controller.h b/chrome/browser/android/vr_shell/vr_controller.h
|
| index 7580500332ecf5ba8818b980521724078578941a..3d4de038a81225641f6866655169d07492d77db5 100644
|
| --- a/chrome/browser/android/vr_shell/vr_controller.h
|
| +++ b/chrome/browser/android/vr_shell/vr_controller.h
|
| @@ -129,7 +129,9 @@ class VrController {
|
| float last_qx_;
|
| bool pinch_started_;
|
| bool zoom_in_progress_ = false;
|
| + bool touch_position_changed_ = false;
|
|
|
| + // Current touch info after the extrapolation.
|
| std::unique_ptr<TouchInfo> touch_info_;
|
|
|
| // A pointer storing the touch point from previous frame.
|
| @@ -144,12 +146,18 @@ class VrController {
|
| // Overall velocity
|
| gvr::Vec2f overall_velocity_;
|
|
|
| + // Last velocity that is used for fling and direction detection
|
| + gvr::Vec2f last_velocity_;
|
| +
|
| // Displacement of the touch point from the previews to the current touch
|
| gvr::Vec2f displacement_;
|
|
|
| int64_t last_touch_timestamp_ = 0;
|
| int64_t last_timestamp_nanos_ = 0;
|
|
|
| + // Number of consecutively extrapolated touch points
|
| + int extrapolated_touch_ = 0;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(VrController);
|
| };
|
|
|
|
|