|
cc: Delay start of scrollbar animation setNeedsRedraw.
This adds a 300ms delay triggered at ScrollEnd in order to avoid
beginning the setNeedsRedraw cycle until we really start fading the
scrollbar, in order to improve performance during non-fling scrolls.
Notes:
- I switched to notifying the animator about ScrollBegin/ScrollEnd when
the currently scrolling layer is attached/detached, and suppress fading
until ScrollEnd.
- The scrollUpdate path is still needed for when the scroll position changes
due to e.g. Javascript, but it's a no-op during a scroll gesture.
- I deleted the pinchGesture logic for simplicity, as there's no
reason to treat pinches differently from scrolls.
- I switches cc::Thread to use TimeDelta for its postDelayedTask since
I ran into some bugs with the flooring to milliseconds. I updated the
few other callers.
NOTRY=true
BUG= 181417
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188684
Total comments: 1
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+176 lines, -83 lines) |
Patch |
 |
M |
cc/base/thread.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/base/thread_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/base/thread_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/delay_based_time_source.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/layer_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
cc/layer_tree_host_impl.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layer_tree_host_impl.cc
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+31 lines, -15 lines |
0 comments
|
Download
|
 |
M |
cc/layer_tree_host_impl_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
cc/layer_tree_impl.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
cc/layer_tree_impl.cc
|
View
|
1
2
3
4
5
6
7
|
3 chunks |
+16 lines, -2 lines |
0 comments
|
Download
|
 |
M |
cc/resource_update_controller.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/scrollbar_animation_controller.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+7 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/scrollbar_animation_controller_linear_fade.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
 |
M |
cc/scrollbar_animation_controller_linear_fade.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+36 lines, -12 lines |
0 comments
|
Download
|
 |
M |
cc/scrollbar_animation_controller_linear_fade_unittest.cc
|
View
|
1
2
3
4
5
6
|
6 chunks |
+28 lines, -21 lines |
0 comments
|
Download
|
 |
M |
cc/single_thread_proxy.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/fake_layer_tree_host_impl_client.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/test/layer_tree_test_common.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/scheduler_test_common.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
cc/test/scheduler_test_common.cc
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
cc/thread_proxy.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
cc/thread_proxy.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+12 lines, -1 line |
0 comments
|
Download
|
Total messages: 7 (0 generated)
|