summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author wilsonshih <wilsonshih@google.com> 2023-11-01 06:44:00 +0000
committer wilsonshih <wilsonshih@google.com> 2024-01-10 03:27:33 +0000
commit9a8fc25286736498f41b85aae4798508c6fd1b05 (patch)
treed588488ecc669911c20242ab20cc57f5b25d6a5c /libs/input/SpriteController.cpp
parent3fca7accd8335e7c4de81d6dab4dea9ff8c89176 (diff)
Support to record multiple activities in the same task as one snapshot.
So the snapshot can be easier to be used with current SnapshotDrawer, also the overall structure would be much similar with associated task starting window. - Record a single activity snapshot while multiple activities in the same leaf task are closing together, this can be extention if mulitple adjacent will happen. - Share the snapshot from activities: because the key of cache must be an activity, so each activity can be the key to find this snapshot from cache, but the activities must be exactly match when calling getSnapshot. - Remove the snapshot if one of activity removed, usually the configuration of rest activities will be changed, so doesn't need to keep the snapshot. Bug: 259497289 Bug: 274997067 Test: atest ActivitySnapshotControllerTests Test: test on sample app, monitor the snapshot of adjacent activities should work like single activity snapshot. Change-Id: I357010ab79eda165564e36fe7203fc508dbc357b
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions