[vr] Ensure that hit testing uses the same stacking order as rendering
The rendering code was updated to sort elements in tree rather than depth order in this cl: https://chromium-review.googlesource.com/c/chromium/src/+/727342 The hit testing code, however, was not similarly updated. Consequently, there can be discrepancies. This CL updates the hit testing code to use nearly the same stacking order as rendering. Note: it is not quite perfect because the ui renderer still summons swaths of elements from the scene explicitly. Eventually, the ui renderer will simply sort and render all elements in the tree and these will be truly identical. However, until then, this ensures we do use the same element sorting routines. Bug: None Change-Id: I12483713f19b678aa9a69b91e5d910e408b73007 Reviewed-on: https://chromium-review.googlesource.com/754554Reviewed-by:Michael Thiessen <mthiesse@chromium.org> Commit-Queue: Ian Vollick <vollick@chromium.org> Cr-Commit-Position: refs/heads/master@{#514136}
Showing
Please register or sign in to comment