WebXR: Update Surface in SurfaceControl mode if needed
The previous workaround for WebXR DOM Overlay mode from https://crrev.com/c/2378653 didn't work consistently due to a race condition. CompositorView's notifyWillUseSurfaceControl is asynchronous, so it's possible that initNativeCompositor will be using the OPAQUE surface even though a later call to canUseSurfaceControl() returns true and getSurfacePixelFormat() returns TRANSLUCENT. In this case, continue with the normal requestSurface path. Bug: 1123951 Change-Id: I612b24bcdeb8b45fb33c6d94481e6b2ab63c74c6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386331 Commit-Queue: Klaus Weidner <klausw@chromium.org> Reviewed-by:Piotr Bialecki <bialpio@chromium.org> Reviewed-by:
Matthew Jones <mdjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#804140}
Showing
Please register or sign in to comment