summaryrefslogtreecommitdiff
path: root/libs/hwui/PathParser.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2023-10-03 16:27:05 +0000
committer Riddle Hsu <riddlehsu@google.com> 2023-10-04 15:10:33 +0000
commite1b98d227d0ae6691ec75bcc1dc61c499e73405b (patch)
tree886d1e30328f3286b90c1bbfd1036eec43369221 /libs/hwui/PathParser.cpp
parent53a1eff94633b3cdc36c4ef4b7e4070a41d77db1 (diff)
Consider transition change info for task snapshot
For example, when launching an activity in a new task, the activity requests to change orientation at runtime before it is drawn. The transition info will be like: type=OPEN { All changes: sb=(0, 0 - 1080, 2340) eb=(0, 0 - 2340, 1080) r=0->1 opening task: mode=OPEN closing task: mode=TO_BACK display: mode=CHANGE } Because the configuration of tasks will be updated with display, the closing task also has the configuration in new orientation. But the activity in the closing task still keeps the appearance in original orientation, so the attributes of snapshot should be consistent with it. Otherwise the task snapshot may show a rotated and cropped activity. Also remove "inFinishingTransition" condition in createSnapshot because currently RecentsTransitionHandler will take snapshot from ATMS#takeTaskSnapshot before the transition is finished. Bug: 301670257 Bug: 279678674 Test: TaskSnapshotControllerTest Change-Id: If030f175bc60804d8b1f90fc88b670789fee4026
Diffstat (limited to 'libs/hwui/PathParser.cpp')
0 files changed, 0 insertions, 0 deletions