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

Commit 004420c1 authored by Matthew DeVore's avatar Matthew DeVore
Browse files

DisplayTopology: remove density param of getGraph

This density map is no longer needed since TreeNode objects have a
logical density and logical px size fields.

This includes a cleanup of proximate code in DisplayTopology which I had
wanted to do for a while. The getInfo method now returns a single List
with a new record type, rather than build a HashMap for each desired
piece of information.

I estimate the List is around as memory-heavy as a single HashMap, as a
HashMap requires an allocation for each Entry and the List requires an
allocation for each NodeDerivedInfo. In this CL, the the RectF bounds
objects are constructed on-demand.

More importantly, the changes were done for the sake of maintainability
and there should be no effect on performance.

Flag: EXEMPT refactor
Bug: b/407028459
Test: DisplayTopologyTest DisplayManagerServiceTest DisplayTopologyCoordinatorTest
Change-Id: I2aeab51d6f43254a438efb4afdba1107380d5533
parent f72d2dc9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment