Use display order to sort SceneOverlays
This patch switches the custom "add overlay" methods for a single unified "addSceneOverlay". This new method does insertion sort based on a predefined list determining the order of each overlay. Display order is no longer based exclusively on the order in which the overlays were added. If two overlays of the same type are added, the most recently added overlay will display above the others. Bug: 1070281, 1131536 Change-Id: I5764593debb13d30389f78303120ec4b4fcbb28f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2392403 Commit-Queue: Matthew Jones <mdjones@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Reviewed-by:
David Trainor <dtrainor@chromium.org> Reviewed-by:
Mei Liang <meiliang@chromium.org> Cr-Commit-Position: refs/heads/master@{#811784}
Showing
Please register or sign in to comment