AR depth: address developer feedback for depth API, minor refactor
Refactor XRSession logic to handle depth information into a separate XRDepthManager to reduce the XRSession's responsibilities. Make the XRDepthInformation object usable only during XRFrame (the frame needs to be both active and animating). This allows us to reduce the amount of copies (but means that multiple instances of XRDepthInformation will share the same underlying depth buffer). Change-Id: I1f709bd440ab771d2b96ebc55a3e15d7e9f25fc3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2575899 Commit-Queue: Piotr Bialecki <bialpio@chromium.org> Reviewed-by:Alexander Cooper <alcooper@chromium.org> Cr-Commit-Position: refs/heads/master@{#835925}
Showing
Please register or sign in to comment