Commit 3f5130b9 authored by Xiaoqian Dai's avatar Xiaoqian Dai Committed by Commit Bot

Revert "libgestures_glue: Send MSC_TIMESTAMP if available"

This reverts commit 886289a7.

Reason for revert: Compile error when building chrome for Caroline using simple Chrome flow. See crbug.com/820601 for details.

Bug: 820601

Original change's description:
> libgestures_glue: Send MSC_TIMESTAMP if available
> 
> If an event from libevdev includes a MSC_TIMESTAMP field, send that
> timestamp to the gesture library. This field will be used by the gesture
> library because it has more accurate time deltas than CLOCK_MONOTONIC.
> 
> BUG=b:65041115
> TEST=Tested manually on lux and eve, using CL:742488 and CL:938751.
> MSC_TIMESTAMP is passed to gesture library if available.
> 
> Change-Id: I05e5a6615e10d33bd0e290b6bb8ff11c2f05f2fc
> Reviewed-on: https://chromium-review.googlesource.com/817979
> Reviewed-by: Michael Spang <spang@chromium.org>
> Commit-Queue: Sean O'Brien <seobrien@chromium.org>
> Cr-Commit-Position: refs/heads/master@{#542190}

TBR=spang@chromium.org,seobrien@chromium.org

Change-Id: Iec92ec30b9451d0a95ac7600c803850912492675
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Bug: b:65041115
Reviewed-on: https://chromium-review.googlesource.com/957603Reviewed-by: default avatarXiaoqian Dai <xdai@chromium.org>
Commit-Queue: Xiaoqian Dai <xdai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542247}
parent 5773863a
......@@ -211,14 +211,6 @@ void GestureInterpreterLibevdevCros::OnLibEvdevCrosEvent(Evdev* evdev,
hwstate.buttons_down |= GESTURES_BUTTON_FORWARD;
}
// Check if this event has an MSC_TIMESTAMP field
if (EvdevBitIsSet(evdev->info.msc_bitmask, MSC_TIMESTAMP)) {
hwstate.msc_timestamp = static_cast<stime_t>(Event_Get_Timestamp(evdev)) /
base::Time::kMicrosecondsPerSecond;
} else {
hwstate.msc_timestamp = 0.0;
}
GestureInterpreterPushHardwareState(interpreter_, &hwstate);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment