summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-05-16 21:02:25 +0800
committer Riddle Hsu <riddlehsu@google.com> 2024-05-27 08:32:19 +0000
commite76e2239d68320f65e4c6acff55cc0fd8d83626e (patch)
tree0b68a2171989c8b415d6d794093581c63a2d617d /libs/input/PointerController.cpp
parent0753af02fc618e830dddbe41689c7949d00ace71 (diff)
Add mixed entering pip transition with display change
The case happens when a pip is entering in previous rotation and then display updates. The transition type can be either TRANSIT_CHANGE or TRANSIT_PIP: PipTask CHANGE sb=Rect(0, 0 - 1080, 2340) eb=Rect(0, 0 - 2340, 1080) r=0->3 Display CHANGE sb=Rect(0, 0 - 1080, 2340) eb=Rect(0, 0 - 2340, 1080) r=0->3 The destination pip bounds should be calculated from (2340, 1080). Because a display snapshot should have covered the screen, the pip should go to the end state immediately and only animate the display rotation animation. This also merges [1] and [2]. [1]: I110d1c11f3d3fdcfb83698e5cf1ec4efb062bd10 [2]: Ia9c78105f4a9782c156744e6cb38681f265955a0 Bug: 340367710 Test: Enable auto rotation and home rotation. Swipe up (do not release touch) an auto pip activity in portrait. Rotate the device to landscape. Continue the swipe up to enter pip. The display should show a rotation animation and the pip can show on correct landscape position, Merged-In: Ia1e5e8c7edb8c2a078a66b587d5d26a495166de2 Change-Id: Ia1e5e8c7edb8c2a078a66b587d5d26a495166de2 (cherry picked from commit 6373912c458efd15abceb9d029bf3efab97578d1)
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions