Poll OpenXR events on a timer when the visibility state is not visible
When the visibility state is hidden, which is the case when the Windows Mixed Reality Portal is closed or the headset is sleeping when a session is requested, Blink stops requesting frames from the XR runtime. This prevents the OpenXR backend from polling events, thus missing the eventual visibility state change once the headset is ready. This change ensures events are constantly being polled by having a timer run every 1 second that polls events if significant time has passed since the last event poll. Bug: 1043209 Change-Id: Ifb607e393b6eebae3cadf28e4a31db9c9054b90a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2018186 Commit-Queue: Patrick To <patrto@microsoft.com> Reviewed-by:Rafael Cintron <rafael.cintron@microsoft.com> Reviewed-by:
Alexander Cooper <alcooper@chromium.org> Cr-Commit-Position: refs/heads/master@{#735783}
Showing
Please register or sign in to comment