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

Issue 136173004: Early terminate flings when scrolling impossible (Closed)

Created:
6 years, 11 months ago by jdduke (slow)
Modified:
6 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, cc-bugs_chromium.org, jam, Xianzhu
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Early terminate flings when scrolling impossible Previously, flings were terminated early only if the root layer overscrolled. Now, flings will terminate if the fling target's |scrollBy()| method returns false, providing consistency between layer types and saving battery on sites with scrolling sublayers. Also move |DidOverscrollParams| into content/ in anticipation of using it directly in the overscroll IPC message. Corresponding Blink patch: https://codereview.chromium.org/139493003/ Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260631

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : More cleanup.... #

Patch Set 4 : Rebase #

Patch Set 5 : Test fix #

Patch Set 6 : Rebase #

Total comments: 2

Patch Set 7 : Remove redundant trace #

Patch Set 8 : Fix mock interface implementation #

Patch Set 9 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -114 lines) Patch
M cc/input/input_handler.h View 1 2 3 chunks +2 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 6 7 8 3 chunks +0 lines, -6 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -11 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +1 line, -18 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_scroll.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.h View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_impl.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/android/in_process/synchronous_input_event_filter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/in_process/synchronous_input_event_filter.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/child/fling_animator_impl_android.cc View 1 4 5 6 1 chunk +3 lines, -5 lines 0 comments Download
M content/child/touch_fling_gesture_curve.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M content/child/touch_fling_gesture_curve_unittest.cc View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
A content/common/input/did_overscroll_params.h View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/input/input_event_filter.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/input_event_filter.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/input/input_handler_manager.h View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/input/input_handler_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/input_handler_manager_client.h View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/input/input_handler_proxy.h View 1 2 2 chunks +8 lines, -3 lines 0 comments Download
M content/renderer/input/input_handler_proxy.cc View 1 2 3 4 5 6 7 8 6 chunks +25 lines, -15 lines 0 comments Download
M content/renderer/input/input_handler_proxy_client.h View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M content/renderer/input/input_handler_proxy_unittest.cc View 1 2 3 4 5 6 7 7 chunks +51 lines, -20 lines 0 comments Download
M content/renderer/input/input_handler_wrapper.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/input/input_handler_wrapper.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M content/test/web_gesture_curve_mock.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M ui/gfx/android/scroller.cc View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gfx/android/scroller_unittest.cc View 1 2 3 2 chunks +24 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jdduke (slow)
aelias@: I've been sitting on this patch for a while, might as well push it ...
6 years, 9 months ago (2014-03-28 21:03:13 UTC) #1
jdduke (slow)
On 2014/03/28 21:03:13, jdduke wrote: > aelias@: I've been sitting on this patch for a ...
6 years, 9 months ago (2014-03-28 21:05:42 UTC) #2
aelias_OOO_until_Jul13
lgtm
6 years, 9 months ago (2014-03-28 23:55:08 UTC) #3
jdduke (slow)
jochen@: Owner review for content/child and content/test? Thanks.
6 years, 8 months ago (2014-03-29 14:07:22 UTC) #4
jochen (gone - plz use gerrit)
lgtm with question https://codereview.chromium.org/136173004/diff/120001/content/child/fling_animator_impl_android.cc File content/child/fling_animator_impl_android.cc (right): https://codereview.chromium.org/136173004/diff/120001/content/child/fling_animator_impl_android.cc#newcode19 content/child/fling_animator_impl_android.cc:19: const char* kCurveName = "FlingAnimatorImpl"; why ...
6 years, 8 months ago (2014-03-31 09:59:10 UTC) #5
jdduke (slow)
https://codereview.chromium.org/136173004/diff/120001/content/child/fling_animator_impl_android.cc File content/child/fling_animator_impl_android.cc (right): https://codereview.chromium.org/136173004/diff/120001/content/child/fling_animator_impl_android.cc#newcode19 content/child/fling_animator_impl_android.cc:19: const char* kCurveName = "FlingAnimatorImpl"; On 2014/03/31 09:59:10, jochen ...
6 years, 8 months ago (2014-03-31 15:41:43 UTC) #6
jdduke (slow)
The CQ bit was checked by jdduke@chromium.org
6 years, 8 months ago (2014-03-31 15:41:57 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/136173004/180001
6 years, 8 months ago (2014-03-31 15:44:32 UTC) #8
commit-bot: I haz the power
Change committed as 260631
6 years, 8 months ago (2014-03-31 20:24:47 UTC) #9
tkent
A revert of this CL has been created in https://codereview.chromium.org/213743004/ by tkent@chromium.org. The reason for ...
6 years, 8 months ago (2014-04-01 04:16:32 UTC) #10
jdduke (slow)
6 years, 8 months ago (2014-04-01 04:40:43 UTC) #11
Message was sent while issue was closed.
On 2014/04/01 04:16:32, tkent wrote:
> A revert of this CL has been created in
> https://codereview.chromium.org/213743004/ by mailto:tkent@chromium.org.
> 
> The reason for reverting is: Broke a layout test,
> fast/events/touch/gesture/pad-gesture-fling.html
> 
>
http://test-results.appspot.com/dashboards/flakiness_dashboard.html#group=%40...
> .

Hmm, looks like this test needs to re-baselined.

Powered by Google App Engine
This is Rietveld 408576698