summaryrefslogtreecommitdiff
path: root/libs/jpegrecoverymap/jpegencoderhelper.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2022-12-06 20:30:22 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2023-03-09 02:06:14 +0000
commit33e3baa3f14cfb2d340c018324bdcd939a8ecc11 (patch)
treefecbdd245cf19f3225c7b64904c6d863aae51ca4 /libs/jpegrecoverymap/jpegencoderhelper.cpp
parent82e081e9c328cd00bd38b507c3342a7cfc4e2351 (diff)
InputDispatcher: Perform hit test in logical display space
Window Manager works in the logical display coordinate space. When it specifies bounds for a window as (l, t, r, b), the range of x in [l, r) and y in [t, b) are considered to be inside the window. Points on the right and bottom edges should not be inside the window, so we need to be careful about performing a hit test when the display is rotated, since the "right" and "bottom" of the window will be different in the display (un-rotated) space compared to in the logical display in which WM determined the bounds. To ensure we consider points on the edges correctly, perform hit tests in dispatcher in the logical display space. Bug: 257118693 Test: atest inputflinger_tests Test: manual with tablet and stylus Change-Id: Ic879c4c2cf81d317030690dff20b21ea7255425b
Diffstat (limited to 'libs/jpegrecoverymap/jpegencoderhelper.cpp')
0 files changed, 0 insertions, 0 deletions