summaryrefslogtreecommitdiff
path: root/libs/binder/IPCThreadState.cpp
diff options
context:
space:
mode:
author arthurhung <arthurhung@google.com> 2020-12-29 20:28:15 +0800
committer arthurhung <arthurhung@google.com> 2021-01-13 23:56:23 +0800
commit10052f69bd4e07355e40f601f15294b4abc832b3 (patch)
tree8ddfb19c5433a2d492bd4389c3674c4b34c7455a /libs/binder/IPCThreadState.cpp
parent08f1520519828d7cec967916b42c91ee10100f04 (diff)
Fix coordinate error after rotation and scaling in TouchInputMapper
The 'rotateAndScale' will transform raw coordinate into surface coordinate, but the raw (x, y) values range would be defined in RawPointerAxes, so we have to transform the raw event using the RawPointerAxes and the scaling ratio into surface coordinate, then calculate the offset by the surface frame. Test: atest inputflinger_test Bug: 176138152 Change-Id: I2d428fcbdc4bb879525754aafef05ebebbf131c5 Merged-In: I2d428fcbdc4bb879525754aafef05ebebbf131c5
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
0 files changed, 0 insertions, 0 deletions