summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Jordan Demeulenaere <jdemeulenaere@google.com> 2024-02-21 09:41:27 +0100
committer Jordan Demeulenaere <jdemeulenaere@google.com> 2024-02-23 16:58:55 +0100
commit9c0fbb1a2ac1ac72a547b4ed99a9e809c30d6c4c (patch)
treeb57dd7d9f9444d5a7f29a48f46527ae65d5f827c /libs/hwui/FrameInfoVisualizer.cpp
parent7b5f3f42fc682ead3aac9a314c7029e613ade135 (diff)
Make it possible to compute the swipe distance lazily
This CL makes it possible to compute the swipe distance of swipes lazily, so that the distance can depend on the size or position of elements from the scene we are transitioning to. The way it works is pretty simple: UserActionDistance.absoluteDistance can return 0f until the swipe distance can be computed. This CL also exposes a UserActionDistanceScope to get the target size and offset of an element inside a scene, which are usually useful to compute swipe distances that depend on an element target state. Note that some of the code in this CL is going to be moved in ag/26316632. Bug: 308961608 Test: SwipeToSceneTest Flag: N/A Change-Id: If70c48de0aba7a793942badcb5a24993277302b1
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions