Add OpenXR mesh extension support and API wrappers [chromium/src : main]

0 views
Skip to first unread message

Brandon Jones (Gerrit)

unread,
Mar 2, 2026, 7:44:16 PM (13 days ago) Mar 2
to Adam Ren (xWF), Code Review Nudger, Alexander Cooper, David Li, AyeAye, feature-v...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Adam Ren (xWF) and Alexander Cooper

Brandon Jones voted and added 1 comment

Votes added by Brandon Jones

Code-Review+1

1 comment

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Brandon Jones . resolved

LGTM!

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Ren (xWF)
  • Alexander Cooper
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not 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: I260916300477accad0f315e678fd93d5c392759b
Gerrit-Change-Number: 7579916
Gerrit-PatchSet: 4
Gerrit-Owner: Adam Ren (xWF) <ada...@google.com>
Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
Gerrit-CC: David Li <dav...@google.com>
Gerrit-Attention: Adam Ren (xWF) <ada...@google.com>
Gerrit-Attention: Alexander Cooper <alco...@chromium.org>
Gerrit-Comment-Date: Tue, 03 Mar 2026 00:44:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Alexander Cooper (Gerrit)

unread,
Mar 10, 2026, 5:03:30 PM (5 days ago) Mar 10
to Adam Ren (xWF), Brandon Jones, Code Review Nudger, David Li, AyeAye, feature-v...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
Attention needed from Adam Ren (xWF)

Alexander Cooper added 5 comments

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

A few minor cleanups.

File device/vr/openxr/openxr_api_wrapper.cc
Line 433, Patchset 5 (Latest): return mesh_manager_.get();
Alexander Cooper . unresolved

NIT: Maybe check feature enabled state?

File device/vr/openxr/openxr_extension_helper.h
Line 25, Patchset 5 (Latest):#if BUILDFLAG(IS_ANDROID)
Alexander Cooper . unresolved

Shouldn't need to be wrapped in `IS_ANDROID` (and surprised it didn't give other errors). Realistically they'll only be present on Android, but when these methods make it into the OpenXR header, they won't need to be restricted anymore.

File device/vr/openxr/openxr_extension_helper.cc
Line 66, Patchset 5 (Latest): feature == device::mojom::XRSessionFeature::MESH_DETECTION;
Alexander Cooper . unresolved

Should be reverted, at least for now.

File device/vr/openxr/openxr_mesh_manager.h
Line 16, Patchset 5 (Latest):// Concrete implementations (like for Android or HoloLens) will inherit from
// this.
Alexander Cooper . unresolved

Remove.

Open in Gerrit

Related details

Attention is currently required from:
  • Adam Ren (xWF)
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • 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: I260916300477accad0f315e678fd93d5c392759b
    Gerrit-Change-Number: 7579916
    Gerrit-PatchSet: 5
    Gerrit-Owner: Adam Ren (xWF) <ada...@google.com>
    Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
    Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
    Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
    Gerrit-CC: David Li <dav...@google.com>
    Gerrit-Attention: Adam Ren (xWF) <ada...@google.com>
    Gerrit-Comment-Date: Tue, 10 Mar 2026 21:03:18 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Adam Ren (xWF) (Gerrit)

    unread,
    Mar 11, 2026, 3:36:55 AM (5 days ago) Mar 11
    to Brandon Jones, Code Review Nudger, Alexander Cooper, David Li, AyeAye, feature-v...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
    Attention needed from Alexander Cooper

    Adam Ren (xWF) added 4 comments

    File device/vr/openxr/openxr_api_wrapper.cc
    Line 433, Patchset 5: return mesh_manager_.get();
    Alexander Cooper . resolved

    NIT: Maybe check feature enabled state?

    Adam Ren (xWF)

    In this CL, it's just like a placeholder. It has been modified to check the enabled state in the fourth CL.

    File device/vr/openxr/openxr_extension_helper.h
    Line 25, Patchset 5:#if BUILDFLAG(IS_ANDROID)
    Alexander Cooper . resolved

    Shouldn't need to be wrapped in `IS_ANDROID` (and surprised it didn't give other errors). Realistically they'll only be present on Android, but when these methods make it into the OpenXR header, they won't need to be restricted anymore.

    Adam Ren (xWF)

    Done

    File device/vr/openxr/openxr_extension_helper.cc
    Line 66, Patchset 5: feature == device::mojom::XRSessionFeature::MESH_DETECTION;
    Alexander Cooper . resolved

    Should be reverted, at least for now.

    Adam Ren (xWF)

    Done

    File device/vr/openxr/openxr_mesh_manager.h
    Line 16, Patchset 5:// Concrete implementations (like for Android or HoloLens) will inherit from
    // this.
    Alexander Cooper . resolved

    Remove.

    Adam Ren (xWF)

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Alexander Cooper
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement is not 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: I260916300477accad0f315e678fd93d5c392759b
      Gerrit-Change-Number: 7579916
      Gerrit-PatchSet: 6
      Gerrit-Owner: Adam Ren (xWF) <ada...@google.com>
      Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
      Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: David Li <dav...@google.com>
      Gerrit-Attention: Alexander Cooper <alco...@chromium.org>
      Gerrit-Comment-Date: Wed, 11 Mar 2026 07:36:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Alexander Cooper <alco...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Alexander Cooper (Gerrit)

      unread,
      Mar 12, 2026, 4:42:41 PM (3 days ago) Mar 12
      to Adam Ren (xWF), Brandon Jones, Code Review Nudger, David Li, AyeAye, feature-v...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
      Attention needed from Adam Ren (xWF) and Brandon Jones

      Alexander Cooper added 2 comments

      File device/vr/openxr/openxr_api_wrapper.cc
      Line 433, Patchset 5: return mesh_manager_.get();
      Alexander Cooper . unresolved

      NIT: Maybe check feature enabled state?

      Adam Ren (xWF)

      In this CL, it's just like a placeholder. It has been modified to check the enabled state in the fourth CL.

      Alexander Cooper

      If just a placeholder, maybe it should be nullptr? While the goal is obviously for all of these to be merged, it's reasonable to not necessarily merge these all at once, e.g. merging the earlier ones as they are ready, and further each *is* a distinct CL, so should be left in a good "intermediate" state. A blind return of the type without a feature check *could* turn into a bug if e.g. this was merged now and then the later CL was massively re-worked.

      File device/vr/openxr/openxr_extension_helper.h
      Line 25, Patchset 7 (Latest):#include "third_party/openxr/dev/xr_android.h"
      Alexander Cooper . unresolved

      NIT: Needs to be sorted as it was originally as well.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Adam Ren (xWF)
      • Brandon Jones
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement is not satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        • 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: I260916300477accad0f315e678fd93d5c392759b
        Gerrit-Change-Number: 7579916
        Gerrit-PatchSet: 7
        Gerrit-Owner: Adam Ren (xWF) <ada...@google.com>
        Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
        Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
        Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
        Gerrit-CC: David Li <dav...@google.com>
        Gerrit-Attention: Adam Ren (xWF) <ada...@google.com>
        Gerrit-Attention: Brandon Jones <baj...@chromium.org>
        Gerrit-Comment-Date: Thu, 12 Mar 2026 20:42:31 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Adam Ren (xWF) <ada...@google.com>
        Comment-In-Reply-To: Alexander Cooper <alco...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Adam Ren (xWF) (Gerrit)

        unread,
        Mar 13, 2026, 3:12:12 AM (3 days ago) Mar 13
        to Brandon Jones, Code Review Nudger, Alexander Cooper, David Li, AyeAye, feature-v...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
        Attention needed from Alexander Cooper and Brandon Jones

        Adam Ren (xWF) added 2 comments

        File device/vr/openxr/openxr_api_wrapper.cc
        Line 433, Patchset 5: return mesh_manager_.get();
        Alexander Cooper . resolved

        NIT: Maybe check feature enabled state?

        Adam Ren (xWF)

        In this CL, it's just like a placeholder. It has been modified to check the enabled state in the fourth CL.

        Alexander Cooper

        If just a placeholder, maybe it should be nullptr? While the goal is obviously for all of these to be merged, it's reasonable to not necessarily merge these all at once, e.g. merging the earlier ones as they are ready, and further each *is* a distinct CL, so should be left in a good "intermediate" state. A blind return of the type without a feature check *could* turn into a bug if e.g. this was merged now and then the later CL was massively re-worked.

        Adam Ren (xWF)

        Thanks. Updated to return nullptr as a placeholder so this CL is safe to merge on its own.

        File device/vr/openxr/openxr_extension_helper.h
        Line 25, Patchset 7:#include "third_party/openxr/dev/xr_android.h"
        Alexander Cooper . resolved

        NIT: Needs to be sorted as it was originally as well.

        Adam Ren (xWF)

        Done

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Alexander Cooper
        • 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: I260916300477accad0f315e678fd93d5c392759b
          Gerrit-Change-Number: 7579916
          Gerrit-PatchSet: 9
          Gerrit-Owner: Adam Ren (xWF) <ada...@google.com>
          Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
          Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
          Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
          Gerrit-CC: David Li <dav...@google.com>
          Gerrit-Attention: Brandon Jones <baj...@chromium.org>
          Gerrit-Attention: Alexander Cooper <alco...@chromium.org>
          Gerrit-Comment-Date: Fri, 13 Mar 2026 07:12:00 +0000
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Alexander Cooper (Gerrit)

          unread,
          Mar 13, 2026, 2:58:47 PM (2 days ago) Mar 13
          to Adam Ren (xWF), Brandon Jones, Code Review Nudger, David Li, AyeAye, feature-v...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
          Attention needed from Adam Ren (xWF) and Brandon Jones

          Alexander Cooper voted Code-Review+1

          Code-Review+1
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Adam Ren (xWF)
          • Brandon Jones
          Submit Requirements:
            • requirement satisfiedCode-Coverage
            • requirement satisfiedCode-Owners
            • requirement is not 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: I260916300477accad0f315e678fd93d5c392759b
            Gerrit-Change-Number: 7579916
            Gerrit-PatchSet: 9
            Gerrit-Owner: Adam Ren (xWF) <ada...@google.com>
            Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
            Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
            Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
            Gerrit-CC: David Li <dav...@google.com>
            Gerrit-Attention: Adam Ren (xWF) <ada...@google.com>
            Gerrit-Attention: Brandon Jones <baj...@chromium.org>
            Gerrit-Comment-Date: Fri, 13 Mar 2026 18:58:35 +0000
            Gerrit-HasComments: No
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Alexander Cooper (Gerrit)

            unread,
            Mar 13, 2026, 2:59:06 PM (2 days ago) Mar 13
            to Adam Ren (xWF), Brandon Jones, Code Review Nudger, David Li, AyeAye, feature-v...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
            Attention needed from Adam Ren (xWF) and Brandon Jones

            Alexander Cooper added 1 comment

            Commit Message
            Line 8, Patchset 9 (Latest):
            Alexander Cooper . unresolved

            There should be a bug associated with all of these CLs

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Adam Ren (xWF)
            • Brandon Jones
            Submit Requirements:
              • requirement satisfiedCode-Coverage
              • requirement satisfiedCode-Owners
              • requirement is not satisfiedCode-Review
              • requirement is not satisfiedNo-Unresolved-Comments
              • 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: I260916300477accad0f315e678fd93d5c392759b
              Gerrit-Change-Number: 7579916
              Gerrit-PatchSet: 9
              Gerrit-Owner: Adam Ren (xWF) <ada...@google.com>
              Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
              Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
              Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
              Gerrit-CC: David Li <dav...@google.com>
              Gerrit-Attention: Adam Ren (xWF) <ada...@google.com>
              Gerrit-Attention: Brandon Jones <baj...@chromium.org>
              Gerrit-Comment-Date: Fri, 13 Mar 2026 18:58:55 +0000
              Gerrit-HasComments: Yes
              Gerrit-Has-Labels: No
              satisfied_requirement
              unsatisfied_requirement
              open
              diffy

              Adam Ren (xWF) (Gerrit)

              unread,
              Mar 15, 2026, 1:05:15 AM (24 hours ago) Mar 15
              to Alexander Cooper, Brandon Jones, Code Review Nudger, David Li, AyeAye, feature-v...@chromium.org, chromium-a...@chromium.org, extension...@chromium.org
              Attention needed from Brandon Jones

              Adam Ren (xWF) added 1 comment

              Commit Message
              Line 8, Patchset 9:
              Alexander Cooper . resolved

              There should be a bug associated with all of these CLs

              Adam Ren (xWF)

              Done

              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 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: I260916300477accad0f315e678fd93d5c392759b
                Gerrit-Change-Number: 7579916
                Gerrit-PatchSet: 10
                Gerrit-Owner: Adam Ren (xWF) <ada...@google.com>
                Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
                Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
                Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
                Gerrit-CC: David Li <dav...@google.com>
                Gerrit-Attention: Brandon Jones <baj...@chromium.org>
                Gerrit-Comment-Date: Sun, 15 Mar 2026 05:05:03 +0000
                Gerrit-HasComments: Yes
                Gerrit-Has-Labels: No
                Comment-In-Reply-To: Alexander Cooper <alco...@chromium.org>
                satisfied_requirement
                unsatisfied_requirement
                open
                diffy
                Reply all
                Reply to author
                Forward
                0 new messages