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

Issue 2486673008: Touchpad scroll latching enabled for Mac behind flag. (Closed)

Created:
4 years, 1 month ago by sahel
Modified:
4 years ago
CC:
blink-reviews, blink-reviews-api_chromium.org, cc-bugs_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, dtapuska+chromiumwatch_chromium.org, jam, tdresser+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Touchpad scroll latching enabled for Mac behind flag. The cl predicts if a GSE is going to be followed by a fling or not. If a fling is going to happen the scrolling layer is not cleared while processing the GSE. To predict a fling, GSE is not sent when a wheel event with phase == phaseEnded arrives. Instead the send_scroll_end_ timer starts. If the next wheel event is in momentumPhase, the timer stops and the GSE with |mayPrecedeFling = true| is sent immediately. Otherwise, it will be sent with |mayPrecedeFling = false| when the timer callback is triggered. To test it, use the --enable-features=TouchpadAndWheelScrollLatching runtime flag. BUG=526463 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Committed: https://crrev.com/0ba6cbb28ab4cc17996711132565b1c4ae896b4e Cr-Commit-Position: refs/heads/master@{#438520}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Use of may_precede_fling in everywhere. #

Patch Set 3 : merge conflicts resolved. #

Total comments: 9

Patch Set 4 : Mouse_wheel_event_queue.cc polished. #

Total comments: 4

Patch Set 5 : mayPrecedeFling->precedeFling #

Total comments: 5

Patch Set 6 : nit fixed #

Total comments: 6

Patch Set 7 : GSE/GSB are not sent when a scroll in inertial phase begins. #

Total comments: 1

Patch Set 8 : nit fixed: assignment instead of condition #

Unified diffs Side-by-side diffs Delta from patch set Stats (+184 lines, -95 lines) Patch
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 3 chunks +29 lines, -28 lines 0 comments Download
M content/browser/renderer_host/input/mouse_wheel_event_queue.cc View 1 2 3 4 5 6 3 chunks +79 lines, -38 lines 0 comments Download
M content/browser/renderer_host/input/mouse_wheel_event_queue_unittest.cc View 1 2 3 4 5 6 7 chunks +70 lines, -29 lines 0 comments Download
M ui/events/blink/input_handler_proxy.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 78 (52 generated)
sahel
4 years, 1 month ago (2016-11-14 15:35:26 UTC) #9
sahel
4 years, 1 month ago (2016-11-14 15:42:35 UTC) #11
tdresser
I think I may have missed some discussion here. Where did the discussion with aelias@ ...
4 years, 1 month ago (2016-11-14 16:02:30 UTC) #12
sahel
https://codereview.chromium.org/2486673008/diff/40001/cc/input/scroll_state_data.h File cc/input/scroll_state_data.h (right): https://codereview.chromium.org/2486673008/diff/40001/cc/input/scroll_state_data.h#newcode37 cc/input/scroll_state_data.h:37: bool may_precede_fling; On 2016/11/14 16:02:29, tdresser wrote: > It ...
4 years, 1 month ago (2016-11-18 16:13:58 UTC) #13
sahel
aelias@chromium.org: Please review changes in cc/* third_party/*
4 years, 1 month ago (2016-11-21 15:15:36 UTC) #23
tdresser
https://codereview.chromium.org/2486673008/diff/40001/cc/input/scroll_state_data.h File cc/input/scroll_state_data.h (right): https://codereview.chromium.org/2486673008/diff/40001/cc/input/scroll_state_data.h#newcode37 cc/input/scroll_state_data.h:37: bool may_precede_fling; On 2016/11/18 16:13:58, sahel wrote: > On ...
4 years, 1 month ago (2016-11-22 21:44:41 UTC) #25
tdresser
aelias@ is out until the beginning of December. dtapuska & ccameron, can you take a ...
4 years, 1 month ago (2016-11-22 21:54:06 UTC) #27
tdresser
Does this work for main thread fling?
4 years, 1 month ago (2016-11-22 21:56:26 UTC) #28
dtapuska
https://codereview.chromium.org/2486673008/diff/80001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (left): https://codereview.chromium.org/2486673008/diff/80001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc#oldcode199 content/browser/renderer_host/input/mouse_wheel_event_queue.cc:199: if (current_phase_ended) { Can these blocks of code be ...
4 years, 1 month ago (2016-11-22 22:10:34 UTC) #29
sahel
https://codereview.chromium.org/2486673008/diff/80001/cc/input/scroll_state_data.h File cc/input/scroll_state_data.h (right): https://codereview.chromium.org/2486673008/diff/80001/cc/input/scroll_state_data.h#newcode37 cc/input/scroll_state_data.h:37: bool may_precede_fling; On 2016/11/22 21:44:40, tdresser wrote: > Shouldn't ...
4 years ago (2016-11-24 15:28:55 UTC) #34
tdresser
https://codereview.chromium.org/2486673008/diff/80001/cc/input/scroll_state_data.h File cc/input/scroll_state_data.h (right): https://codereview.chromium.org/2486673008/diff/80001/cc/input/scroll_state_data.h#newcode37 cc/input/scroll_state_data.h:37: bool may_precede_fling; On 2016/11/24 15:28:55, sahel wrote: > On ...
4 years ago (2016-11-28 15:25:17 UTC) #35
sahel
On 2016/11/28 15:25:17, tdresser wrote: > https://codereview.chromium.org/2486673008/diff/80001/cc/input/scroll_state_data.h > File cc/input/scroll_state_data.h (right): > > https://codereview.chromium.org/2486673008/diff/80001/cc/input/scroll_state_data.h#newcode37 > ...
4 years ago (2016-11-28 15:51:40 UTC) #36
tdresser
On 2016/11/28 15:51:40, sahel wrote: > On 2016/11/28 15:25:17, tdresser wrote: > > > https://codereview.chromium.org/2486673008/diff/80001/cc/input/scroll_state_data.h ...
4 years ago (2016-11-28 15:57:23 UTC) #37
sahel
On 2016/11/28 15:57:23, tdresser wrote: > On 2016/11/28 15:51:40, sahel wrote: > > On 2016/11/28 ...
4 years ago (2016-11-29 18:57:04 UTC) #48
sahel
https://codereview.chromium.org/2486673008/diff/100001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc File content/browser/renderer_host/input/mouse_wheel_event_queue.cc (right): https://codereview.chromium.org/2486673008/diff/100001/content/browser/renderer_host/input/mouse_wheel_event_queue.cc#newcode214 content/browser/renderer_host/input/mouse_wheel_event_queue.cc:214: SendScrollEnd(scroll_update, false, false); On 2016/11/28 15:25:17, tdresser wrote: > ...
4 years ago (2016-11-29 18:57:16 UTC) #49
tdresser
LGTM -ccameron, as he hasn't given any feedback, and aelias@ will be back shortly. https://codereview.chromium.org/2486673008/diff/160001/cc/input/scroll_state_data.h ...
4 years ago (2016-11-29 19:06:54 UTC) #51
sahel
https://codereview.chromium.org/2486673008/diff/160001/cc/input/scroll_state_data.h File cc/input/scroll_state_data.h (right): https://codereview.chromium.org/2486673008/diff/160001/cc/input/scroll_state_data.h#newcode37 cc/input/scroll_state_data.h:37: bool precede_fling; On 2016/11/29 19:06:54, tdresser wrote: > nit: ...
4 years ago (2016-11-30 19:41:54 UTC) #56
tdresser
https://codereview.chromium.org/2486673008/diff/160001/content/browser/renderer_host/input/mouse_wheel_event_queue.h File content/browser/renderer_host/input/mouse_wheel_event_queue.h (right): https://codereview.chromium.org/2486673008/diff/160001/content/browser/renderer_host/input/mouse_wheel_event_queue.h#newcode85 content/browser/renderer_host/input/mouse_wheel_event_queue.h:85: bool precede_fling); On 2016/11/30 19:41:54, sahel wrote: > On ...
4 years ago (2016-11-30 19:42:36 UTC) #57
aelias_OOO_until_Jul13
https://codereview.chromium.org/2486673008/diff/180001/cc/input/scroll_state_data.h File cc/input/scroll_state_data.h (right): https://codereview.chromium.org/2486673008/diff/180001/cc/input/scroll_state_data.h#newcode37 cc/input/scroll_state_data.h:37: bool precedes_fling; It's confusing to add a special boolean ...
4 years ago (2016-12-02 05:17:56 UTC) #58
aelias_OOO_until_Jul13
OK, anyway, I realized today I've been acting as a long-distance bottleneck on your work, ...
4 years ago (2016-12-08 19:22:16 UTC) #59
sahel
https://codereview.chromium.org/2486673008/diff/180001/cc/input/scroll_state_data.h File cc/input/scroll_state_data.h (right): https://codereview.chromium.org/2486673008/diff/180001/cc/input/scroll_state_data.h#newcode37 cc/input/scroll_state_data.h:37: bool precedes_fling; On 2016/12/02 05:17:56, aelias_OOO_until_Dec1 wrote: > It's ...
4 years ago (2016-12-13 19:14:24 UTC) #64
tdresser
LGTM - let's get dtapuska@ to take a look before we land this though.
4 years ago (2016-12-13 19:53:06 UTC) #65
dtapuska
lgtm % nit https://codereview.chromium.org/2486673008/diff/200001/ui/events/blink/input_handler_proxy.cc File ui/events/blink/input_handler_proxy.cc (right): https://codereview.chromium.org/2486673008/diff/200001/ui/events/blink/input_handler_proxy.cc#newcode147 ui/events/blink/input_handler_proxy.cc:147: scroll_state_data.is_in_inertial_phase = true; Can we short ...
4 years ago (2016-12-13 21:16:42 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2486673008/220001
4 years ago (2016-12-14 15:16:46 UTC) #73
commit-bot: I haz the power
Committed patchset #8 (id:220001)
4 years ago (2016-12-14 15:21:35 UTC) #76
commit-bot: I haz the power
4 years ago (2016-12-14 15:24:28 UTC) #78
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/0ba6cbb28ab4cc17996711132565b1c4ae896b4e
Cr-Commit-Position: refs/heads/master@{#438520}

Powered by Google App Engine
This is Rietveld 408576698