Chromium Code Reviews
DescriptionOptimization: avoid making 4 JNI calls to get touch device attributes.
Each call (Get{Available|Primary}{Pointer|Hover}Type) does a separate
iteration over the input device list, as well as incurring JNI call
overhead. By fetching the Pointer and Hover types in one call, and
then reusing the values, we can avoid unnecessary work on the WebView
startup path.
BUG=600060
Committed: https://crrev.com/4cef7d0449592119bc8bdee2b5a98c89543f4c03
Cr-Commit-Position: refs/heads/master@{#416644}
Patch Set 1 #
Total comments: 2
Patch Set 2 : remove unused APIs #Patch Set 3 : Correct a spelling mistake. #
Total comments: 1
Patch Set 4 : Remove unneccessary functions from touch_device.cc #Patch Set 5 : Fix windows compile issues #
Messages
Total messages: 32 (22 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||