Change information
Commit message:
[M138-LTS][WebXR] Update detached matrix handling
Updates a few places that handle an array representation of a matrix
being detached by returning a 0-length array to simply recompute the
array that should be present, based on the presence of other data. This
more closely matches the spec, which for both of these cases essentially
state that if the value is not null to check if it's detached, and if it
is not detached to return the value. The steps following both of these
checks then recompute the matrix, so technically our current impl is
not spec-compliant to that.
Further, we remove one unused array to transform conversion helper and
update another to a CHECK from a DCHECK to match best practices for
invariants.
(cherry picked from commit 6c5963ad6b4541f5fa0812607fd36a979c48c0f1)
Fixed: 452071845
Change-Id: Idf765fe5717d59ae63c71e8253784ff4473dea5f
Cr-Original-Commit-Position: refs/heads/main@{#1530947}
Cr-Commit-Position: refs/branch-heads/7204@{#3469}
Cr-Branched-From: d5de512dc9dc8ddfe4e6d71b0637578bb6158683-refs/heads/main@{#1465706}
Files:
- M third_party/blink/renderer/modules/xr/xr_rigid_transform.cc
- M third_party/blink/renderer/modules/xr/xr_utils.cc
- M third_party/blink/renderer/modules/xr/xr_utils.h
- M third_party/blink/renderer/modules/xr/xr_view.cc
- M third_party/blink/renderer/modules/xr/xr_view.h
Change size: S
Delta: 5 files changed, 8 insertions(+), 18 deletions(-)
Branch: refs/branch-heads/7204
Submit Requirements:
Code-Review: +1 by Mohamed Omar, +1 by Jeremy Roman