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

Skip to content
Commit 64f7b420 authored by chaviw's avatar chaviw
Browse files

Update LayerVector's order after modifying relative layer.

If the z value for a layer is updated due to a relative layer change,
the order of layers in the SortedVector was not updated and could cause
lookup failures in the binary search. This updates the vector by
removing and then re-adding the layer to ensure it's resorted.

Also added the eRelativeLayerChanged condition for SurfaceFlinger_hwc1.

Test: Added multiple layers that updated relative layer. The LayerVector's
      order was updated correctly and the layers remain in the correct
      order.

Change-Id: If5403a0b626f34db41bf7a98fe42830ed272d16e
parent 0f5bf761
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