Description[Android] Cache additional MotionEvent bits in MotionEventAndroid
Closer inspection of MotionEventAndroid usage revealed that several uncached
properties were being accessed on average 2x or more times per event, incurring
significant JNI costs. Address this by caching these properties (pointer id,
touch size and touch position) for the most common touch scenarios (scroll and
pinch). This reduces the time spent processing touch events in the browser by
~20% (.1ms) during scrolling, and ~40% (.2ms) during pinching on a typical
Android device.
BUG=341613
NOTRY=true
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=255789
Patch Set 1 #Patch Set 2 : Pass all values on initial JNI call #Patch Set 3 : Cleanup #Patch Set 4 : Final cleanup #
Messages
Total messages: 21 (0 generated)
|