• Phu Le's avatar
    Allow OpenXR device to reliably terminate XR sessions · 0bf5ea01
    Phu Le authored
    Currently today OpenXR event pump does not have a callback to the render
    loop and instead setting a state for session end and relies on the next
    frame to check that state.  This is not reliable as most of the time,
    the frame pump stops after sessions ends and the state logic has race
    condition inside that changes as the code churns. This change add an
    explicit callback to notify the end of a XR session so that the render
    loop can reliably trigger the blink callback on session's end.
    
    Bug: 1148648
    Change-Id: I5447b0d053bbc1d575c9b509edc0ca5d6f76bca8
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2535852
    Commit-Queue: Phu Le <phle@microsoft.com>
    Reviewed-by: default avatarAlexander Cooper <alcooper@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#833802}
    0bf5ea01
openxr_api_wrapper.cc 30.7 KB