Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b76f93b8 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

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
parent 8c4d65f5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment