summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Jordan Demeulenaere <jdemeulenaere@google.com> 2023-12-14 14:16:07 +0100
committer Jordan Demeulenaere <jdemeulenaere@google.com> 2023-12-14 16:04:48 +0100
commitb76f93b8007e564ebc8aef7d8a7678d6ed3e8192 (patch)
tree5c317810ebfdf10eebf61e2cf1dd13b542324a46 /api/api.go
parent8c4d65f546701621c330b5f09337c421c5c72587 (diff)
Do not place elements if they are not going to be drawn anyways
This CL moves the location where we check whether an element should be drawn from drawing time to placement time: there is no need to place (and therefore compute the offset) of an element if we are not going to draw it anyways. Note that we still need to compute the size of an element in each scene because the size of elements does impact the layout in both scenes the element is in. Bug: 308961608 Test: PlatformComposeSceneTransitionLayoutTests Flag: N/A Change-Id: Icaec9770dc06f0ee054541faea58052e193cc608
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions