-
Patrick To authored
When a session is created in OpenXR, it is not started until an OpenXR event indicates that the session is ready to begin. However, WebXR starts requesting frames as soon as the runtime is created. This calls xrWaitFrame before the session has begun, which generates an OpenXR error. This change keeps track of when the session is running, and only calls xrWaitFrame when the session has begun. Otherwise, an empty frame is returned to WebXR. Bug: 1050729 Change-Id: I990457a349ba90395404b2adb3f14b3c21883bb6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2275370Reviewed-by:
Alexander Cooper <alcooper@chromium.org> Reviewed-by:
Brandon Jones <bajones@chromium.org> Commit-Queue: Patrick To <patrto@microsoft.com> Cr-Commit-Position: refs/heads/master@{#786024}
ab9f7839