|
Remove abstract Clone and Cancel methods from MotionEvent
Create a single implementation of MotionEvent's |Clone()| and
|Cancel()| methods using MotionEventGeneric. Expand
MotionEventGeneric to support historical events, also removing
CompoundMotionEvent from the MotionEventBuffer implementation.
By avoiding JNI and garbage creation, this reduces the cost of both
methods by ~10x on Android, from ~25us call to ~2us.
BUG= 501503003
Committed: https://crrev.com/b5a33976eb45777e6ca7c8785677d4df08eb04fd
Cr-Commit-Position: refs/heads/master@{#301136}
Total comments: 12
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+662 lines, -1026 lines) |
Patch |
 |
M |
content/browser/android/content_view_core_impl.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
2 chunks |
+19 lines, -17 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/input/gesture_text_selector_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/input/motion_event_android.h
|
View
|
1
2
3
4
|
5 chunks |
+44 lines, -54 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/input/motion_event_android.cc
|
View
|
1
2
3
4
|
12 chunks |
+62 lines, -190 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/input/motion_event_android_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+58 lines, -134 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/input/motion_event_web.h
|
View
|
1
2
3
4
5
6
7
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/input/motion_event_web.cc
|
View
|
1
2
|
2 chunks |
+0 lines, -15 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/input/touch_handle_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/input/touch_selection_controller_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/input/web_input_event_util_unittest.cc
|
View
|
1
2
3
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
ui/events/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/events/OWNERS
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/events/events.gyp
|
View
|
1
2
3
4
5
6
7
8
9
10
11
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/bitset_32.h
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/gesture_event_data_packet_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/gesture_provider_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/motion_event.h
|
View
|
1
2
3
4
5
6
7
|
2 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/motion_event.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+5 lines, -41 lines |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/motion_event_buffer.h
|
View
|
1
2
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/motion_event_buffer.cc
|
View
|
1
2
3
4
5
6
7
|
10 chunks |
+100 lines, -213 lines |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/motion_event_buffer_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/motion_event_generic.h
|
View
|
1
2
3
4
5
6
7
8
|
5 chunks |
+22 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/motion_event_generic.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+122 lines, -14 lines |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/motion_event_generic_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+101 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/touch_disposition_gesture_filter_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/gesture_detection/velocity_tracker_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
ui/events/gestures/motion_event_aura.h
|
View
|
1
2
3
4
5
|
2 chunks |
+1 line, -4 lines |
0 comments
|
Download
|
 |
M |
ui/events/gestures/motion_event_aura.cc
|
View
|
1
2
3
4
5
6
|
5 chunks |
+10 lines, -27 lines |
0 comments
|
Download
|
 |
M |
ui/events/gestures/motion_event_aura_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
6 chunks |
+19 lines, -18 lines |
0 comments
|
Download
|
 |
M |
ui/events/test/mock_motion_event.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -61 lines |
0 comments
|
Download
|
 |
M |
ui/events/test/mock_motion_event.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+0 lines, -177 lines |
0 comments
|
Download
|
 |
A + |
ui/events/test/motion_event_test_utils.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
ui/events/test/motion_event_test_utils.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
4 chunks |
+56 lines, -14 lines |
0 comments
|
Download
|
Total messages: 23 (4 generated)
|