summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2019-12-11 16:47:32 -0800
committer chaviw <chaviw@google.com> 2020-01-07 16:48:41 -0800
commit5d22a2358e49e51782e980201e406fb4d592305a (patch)
treec6dd9827fce874c5c8a7e7e04b8550673e1d0ea8 /libs/gui/BLASTBufferQueue.cpp
parente950a4e1e932e95b78e757be811ac8e85993bd47 (diff)
Handle different scale and offset for pointers in InputTarget.
This change allows an InputTarget to have multiple pointers in different scale and offsets. This was done by using an array to store each pointerId to PointerInfo. PointerInfo contains the information that's unique to each pointer, scale and offset. Once the dispatcher is ready to queue the event, the dispatcher will request the InputTarget to gather all it's pointer information and normalize them to a single offset and scale. It will generate a new DispatcherEntry with a new MotionEvent that has all the coordinates in a single offset and scale. It will also set that offset and scale in the MotionEvent so it can be handled properly when sent to the client. Test: InputDispatcherMultiWindowSameTokenTests Test: manually with magnification Bug: 140756730 Change-Id: I449741a4b4b6fd7abc498d0a4b113da56fd42687
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions