Create and use XrNextChainBuilder to simplify extending next chains [chromium/src : main]

0 views
Skip to first unread message

Alexander Cooper (Gerrit)

unread,
Feb 12, 2026, 5:23:45 PM (2 days ago) Feb 12
to Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org, feature-v...@chromium.org
Attention needed from Brandon Jones

Alexander Cooper added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Alexander Cooper . resolved

Brandon PTAL

Open in Gerrit

Related details

Attention is currently required from:
  • Brandon Jones
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ic58532719f7431b8c18d0e50efa525f2b44f2376
Gerrit-Change-Number: 7569212
Gerrit-PatchSet: 3
Gerrit-Owner: Alexander Cooper <alco...@chromium.org>
Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
Gerrit-Attention: Brandon Jones <baj...@chromium.org>
Gerrit-Comment-Date: Thu, 12 Feb 2026 22:23:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Brandon Jones (Gerrit)

unread,
Feb 12, 2026, 5:32:01 PM (2 days ago) Feb 12
to Alexander Cooper, Chromium LUCI CQ, chromium...@chromium.org, feature-v...@chromium.org
Attention needed from Alexander Cooper

Brandon Jones voted and added 1 comment

Votes added by Brandon Jones

Code-Review+1

1 comment

Patchset-level comments
Brandon Jones . resolved

LGTM! Thanks for taking the time to update existing chains too!

Open in Gerrit

Related details

Attention is currently required from:
  • Alexander Cooper
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic58532719f7431b8c18d0e50efa525f2b44f2376
    Gerrit-Change-Number: 7569212
    Gerrit-PatchSet: 3
    Gerrit-Owner: Alexander Cooper <alco...@chromium.org>
    Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
    Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
    Gerrit-Attention: Alexander Cooper <alco...@chromium.org>
    Gerrit-Comment-Date: Thu, 12 Feb 2026 22:31:54 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Alexander Cooper (Gerrit)

    unread,
    Feb 12, 2026, 5:33:27 PM (2 days ago) Feb 12
    to Brandon Jones, Chromium LUCI CQ, chromium...@chromium.org, feature-v...@chromium.org

    Alexander Cooper voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic58532719f7431b8c18d0e50efa525f2b44f2376
    Gerrit-Change-Number: 7569212
    Gerrit-PatchSet: 3
    Gerrit-Owner: Alexander Cooper <alco...@chromium.org>
    Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
    Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
    Gerrit-Comment-Date: Thu, 12 Feb 2026 22:33:17 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Feb 12, 2026, 5:56:36 PM (2 days ago) Feb 12
    to Alexander Cooper, Brandon Jones, chromium...@chromium.org, feature-v...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Create and use XrNextChainBuilder to simplify extending next chains

    Creates a templated XrNextChainBuilder to allow appending arbitrary
    structs to the next chain of an existing struct. This approach
    constantly pushes items further down the next chain. It was briefly
    considered to constantly track and append to the end of the current next
    chain, but given comments regarding asan builds on a similar dawn
    helper, this approach was chosen instead.

    This change also adopts the XrNextChainBuilder in several places where
    next chains were being extended. For now, if the next chain only
    contained (and seemed like it would only ever contain for the
    foreseeable future) two items (e.g. SystemProperties structs), the new
    struct was not used, as it would only add complexity to those simple
    scenarios.

    Note that this also involved changing the types for the method on the
    OpenXrHandTracker to extend the next chain, as this is now a more robust
    solution.
    Change-Id: Ic58532719f7431b8c18d0e50efa525f2b44f2376
    Reviewed-by: Brandon Jones <baj...@chromium.org>
    Commit-Queue: Alexander Cooper <alco...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1584266}
    Files:
    • M device/vr/openxr/android/openxr_light_estimator_android.cc
    • M device/vr/openxr/fb/openxr_hand_tracker_fb.cc
    • M device/vr/openxr/fb/openxr_hand_tracker_fb.h
    • M device/vr/openxr/openxr_hand_tracker.cc
    • M device/vr/openxr/openxr_hand_tracker.h
    • M device/vr/openxr/openxr_spatial_plane_manager.cc
    • M device/vr/openxr/openxr_util.h
    Change size: M
    Delta: 7 files changed, 60 insertions(+), 30 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Brandon Jones
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic58532719f7431b8c18d0e50efa525f2b44f2376
    Gerrit-Change-Number: 7569212
    Gerrit-PatchSet: 4
    Gerrit-Owner: Alexander Cooper <alco...@chromium.org>
    Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
    Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages