PTAL at this reland (Commit 1 is the original change). Thanks.
if (layers_sequence_.empty()) {Note: this is the check that is also used in `GetSharedImages()` now.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
PTAL at this reland (Commit 1 is the original change). Thanks.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Reland "[xr] Move GpuFence creation into ClientSharedImage for OpenXR"
This is a reland of commit 39b2d5ddfe1aabea931b7f72325c44a4c473c718
The original change attempted to get the active swap chain image
from the base layer OpenXrGraphicsBinding::GetSharedImages(). However,
the base layer may not have an active image even when `base_layer_` is
non-null. This caused a failure in WebXrVrOpenXrBrowserTest.TestLayers.
In this reland, we fix this issue by checking if `layers_sequence_`
is empty before acquiring the active swap chain image from base layer.
Original change's description:
> [xr] Move GpuFence creation into ClientSharedImage for OpenXR
>
> As part of the effort of moving SyncToken management in
> ClientSharedImage, this CL moves the GpuFence creation in OpenXR into
> ClientSharedImage::CreateGpuFenceForSyncTokens(). To support this
> change, we also added a GetSharedImages() member in
> OpenXrGraphicsBinding to retrieve ClientSharedImages for layers, and
> changed the GpuFence destruction timing to match the model used by
> Cardboard in ClientSharedImage::CreateGpuFenceForSyncTokens().
>
> Change-Id: Id9891c9a343b40df4ed687d7bfe34df10c81598c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7866522
> Commit-Queue: Mingjing Zhang <mjz...@chromium.org>
> Reviewed-by: Vasiliy Telezhnikov <vas...@chromium.org>
> Reviewed-by: Alexander Cooper <alco...@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1637809}
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |