• Klaus Weidner's avatar
    WebXR: Add XRViewData reference to XRView · 9f117237
    Klaus Weidner authored
    The Blink WebXR code has two parallel classes. XRViewData corresponds
    to the internal "view" from the spec, and XRView is what is exposed
    to JS. XRViewData has session lifetime, while XRView is ephemeral
    and created per frame.
    
    This change adds a reference from the XRView to the underlying
    XRViewData object, as expected by the spec's algorithms. This requires
    making XRViewData and their containing list garbage-collected objects.
    
    Bug: 1133381
    Change-Id: I696a1a899ab8fdf27a2107bbadeb61773c4ade84
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2438690Reviewed-by: default avatarBrandon Jones <bajones@chromium.org>
    Commit-Queue: Klaus Weidner <klausw@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#812345}
    9f117237
xr_session.h 24.4 KB