WebXR Layers: Enable layers feature on by default [chromium/src : main]

0 views
Skip to first unread message

Yong Li (xWF) (Gerrit)

unread,
Feb 12, 2026, 1:13:49 PM (3 days ago) Feb 12
to Rick Byers, Alexander Cooper, AyeAye, Kinuko Yasuda, Brandon Jones, Evgenii Alekseev (xWF), Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, asvitki...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org
Attention needed from Alexander Cooper, Brandon Jones, Kinuko Yasuda and Rick Byers

Yong Li (xWF) added 2 comments

Patchset-level comments
File-level comment, Patchset 1:
Alexander Cooper . resolved

I started the CQ because this will cause all kinds of other things that need to be updated. Some are I think because of the flag rename which you can avoid, but e.g. `virtual/stable/webexposed` won't be. I *think* we probably also want to update the runtime_enabled_features.json5 entry; and to do that (and the virtual/stable/webexposed), you'll need a completed chromestatus entry which includes the approval from the blink API OWNERS.

Alexander Cooper

chromestatus or launch entry?

Yong Li (xWF)

Done

File device/vr/public/cpp/features.cc
Line 26, Patchset 6:#if BUILDFLAG(IS_ANDROID)
BASE_FEATURE(kWebXRLayers, base::FEATURE_ENABLED_BY_DEFAULT);
#else
BASE_FEATURE(kWebXRLayers, base::FEATURE_DISABLED_BY_DEFAULT);
#endif
Alexander Cooper . resolved

What if we just enabled it by default for all platforms (and for runtime_enabled_features.json5) and put enabling the layers API feature in OpenXR behind a runtime check to deny it on Windows? Do ProjectionLayers work on Windows?

Yong Li (xWF)

I don't have a windows setup. (maybe I could request one). Not sure about the project plan on Windows. But according to the current code, creating a projection layer will fail on Windows because CreateCompostionLayer will fail.

Brandon Jones

Not advertising the layers feature won't prevent projection layers from being created. And Three.js, at least, will attempt to use them if it sees that the entry point is present, so exposing it be default if the projection layers don't work everywhere will break a lot of Three.js XR content.

Alexander Cooper

Projection Layer *does* seem to work on Windows unless we use the texture array: https://immersive-web.github.io/webxr-samples/layers-samples/proj-layer.html

Yong Li (xWF)

It seems we won't create layer_manager on Windows. So it will use old code path, and GetFirstLayer() will return the projection layer. It will match the base layer on device/ side.
Even though, should we still keep it disabled for Windows by default given Brandon's comments?

Alexander Cooper

Let me chat with him; I did get it to work for texture array at one point as well as several THREE.js samples seeming to work fine.

Alexander Cooper

Chatted offline with Brandon. Given the guard in https://source.chromium.org/chromium/chromium/src/+/main:device/vr/openxr/openxr_api_wrapper.cc;drc=d3ccc328badd8a91517b0360b56de6da5011a2e8;l=600 for Windows and the fact that projection layers do work (I was able to validate this for Windows). Please enable the device::feature and runtime_enabled_features.json5 for all platforms.

Thanks!

Yong Li (xWF)

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Alexander Cooper
  • Brandon Jones
  • Kinuko Yasuda
  • Rick Byers
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not 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: I5cc0806e4f7ce15adc761188ede00deef960283e
Gerrit-Change-Number: 7425292
Gerrit-PatchSet: 9
Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
Gerrit-Reviewer: Kinuko Yasuda <kin...@chromium.org>
Gerrit-Reviewer: Rick Byers <rby...@chromium.org>
Gerrit-Reviewer: Yong Li (xWF) <yyon...@google.com>
Gerrit-CC: Evgenii Alekseev (xWF) <eale...@google.com>
Gerrit-Attention: Brandon Jones <baj...@chromium.org>
Gerrit-Attention: Alexander Cooper <alco...@chromium.org>
Gerrit-Attention: Rick Byers <rby...@chromium.org>
Gerrit-Attention: Kinuko Yasuda <kin...@chromium.org>
Gerrit-Comment-Date: Thu, 12 Feb 2026 18:13:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Yong Li (xWF) <yyon...@google.com>
Comment-In-Reply-To: Brandon Jones <baj...@chromium.org>
Comment-In-Reply-To: Alexander Cooper <alco...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Alexander Cooper (Gerrit)

unread,
Feb 12, 2026, 1:24:24 PM (3 days ago) Feb 12
to Yong Li (xWF), Rick Byers, AyeAye, Kinuko Yasuda, Brandon Jones, Evgenii Alekseev (xWF), Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, asvitki...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org
Attention needed from Brandon Jones, Kinuko Yasuda, Rick Byers and Yong Li (xWF)

Alexander Cooper voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Brandon Jones
  • Kinuko Yasuda
  • Rick Byers
  • Yong Li (xWF)
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not 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: I5cc0806e4f7ce15adc761188ede00deef960283e
    Gerrit-Change-Number: 7425292
    Gerrit-PatchSet: 9
    Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
    Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
    Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
    Gerrit-Reviewer: Kinuko Yasuda <kin...@chromium.org>
    Gerrit-Reviewer: Rick Byers <rby...@chromium.org>
    Gerrit-Reviewer: Yong Li (xWF) <yyon...@google.com>
    Gerrit-CC: Evgenii Alekseev (xWF) <eale...@google.com>
    Gerrit-Attention: Yong Li (xWF) <yyon...@google.com>
    Gerrit-Attention: Brandon Jones <baj...@chromium.org>
    Gerrit-Attention: Rick Byers <rby...@chromium.org>
    Gerrit-Attention: Kinuko Yasuda <kin...@chromium.org>
    Gerrit-Comment-Date: Thu, 12 Feb 2026 18:24:13 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Rick Byers (Gerrit)

    unread,
    Feb 13, 2026, 9:48:49 AM (2 days ago) Feb 13
    to Yong Li (xWF), Alexander Cooper, AyeAye, Kinuko Yasuda, Brandon Jones, Evgenii Alekseev (xWF), Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, asvitki...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org
    Attention needed from Brandon Jones, Kinuko Yasuda and Yong Li (xWF)

    Rick Byers added 2 comments

    Patchset-level comments
    File-level comment, Patchset 10 (Latest):
    Rick Byers . unresolved

    Just one issue. Please double check that your exposed API matches the current spec (I relied on Gemini to find this discrepancy for me, I did not do an exhaustive manual review myself).

    File third_party/blink/web_tests/virtual/stable/webexposed/global-interface-listing-expected.txt
    Line 11744, Patchset 10 (Latest): getter chromaticAberrationCorrection
    Rick Byers . unresolved

    It looks like this member was removed from the spec back in 2023 and so should not be shipped in Chromium: https://github.com/immersive-web/layers/issues/299

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Brandon Jones
    • Kinuko Yasuda
    • Yong Li (xWF)
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not 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: I5cc0806e4f7ce15adc761188ede00deef960283e
      Gerrit-Change-Number: 7425292
      Gerrit-PatchSet: 10
      Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
      Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
      Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
      Gerrit-Reviewer: Kinuko Yasuda <kin...@chromium.org>
      Gerrit-Reviewer: Rick Byers <rby...@chromium.org>
      Gerrit-Reviewer: Yong Li (xWF) <yyon...@google.com>
      Gerrit-CC: Evgenii Alekseev (xWF) <eale...@google.com>
      Gerrit-Attention: Yong Li (xWF) <yyon...@google.com>
      Gerrit-Attention: Brandon Jones <baj...@chromium.org>
      Gerrit-Attention: Kinuko Yasuda <kin...@chromium.org>
      Gerrit-Comment-Date: Fri, 13 Feb 2026 14:48:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Yong Li (xWF) (Gerrit)

      unread,
      Feb 13, 2026, 11:26:47 AM (2 days ago) Feb 13
      to Alexander Cooper, Rick Byers, AyeAye, Kinuko Yasuda, Brandon Jones, Evgenii Alekseev (xWF), Chromium LUCI CQ, chromium...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, asvitki...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org
      Attention needed from Alexander Cooper, Brandon Jones, Kinuko Yasuda and Rick Byers

      Yong Li (xWF) added 2 comments

      Patchset-level comments

      Just one issue. Please double check that your exposed API matches the current spec (I relied on Gemini to find this discrepancy for me, I did not do an exhaustive manual review myself).

      Yong Li (xWF)

      I just went through the new API and checked the spec. Thanks!

      File third_party/blink/web_tests/virtual/stable/webexposed/global-interface-listing-expected.txt
      Line 11744, Patchset 10: getter chromaticAberrationCorrection
      Rick Byers . resolved

      It looks like this member was removed from the spec back in 2023 and so should not be shipped in Chromium: https://github.com/immersive-web/layers/issues/299

      Yong Li (xWF)

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Alexander Cooper
      • Brandon Jones
      • Kinuko Yasuda
      • Rick Byers
        Submit Requirements:
          • requirement satisfiedCode-Coverage
          • requirement is not 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: I5cc0806e4f7ce15adc761188ede00deef960283e
          Gerrit-Change-Number: 7425292
          Gerrit-PatchSet: 11
          Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
          Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
          Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
          Gerrit-Reviewer: Kinuko Yasuda <kin...@chromium.org>
          Gerrit-Reviewer: Rick Byers <rby...@chromium.org>
          Gerrit-Reviewer: Yong Li (xWF) <yyon...@google.com>
          Gerrit-CC: Evgenii Alekseev (xWF) <eale...@google.com>
          Gerrit-Attention: Brandon Jones <baj...@chromium.org>
          Gerrit-Attention: Alexander Cooper <alco...@chromium.org>
          Gerrit-Attention: Rick Byers <rby...@chromium.org>
          Gerrit-Attention: Kinuko Yasuda <kin...@chromium.org>
          Gerrit-Comment-Date: Fri, 13 Feb 2026 16:26:42 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          Comment-In-Reply-To: Rick Byers <rby...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy

          Rick Byers (Gerrit)

          unread,
          Feb 13, 2026, 4:17:16 PM (2 days ago) Feb 13
          to Yong Li (xWF), Alexander Cooper, AyeAye, Kinuko Yasuda, Brandon Jones, Evgenii Alekseev (xWF), Chromium LUCI CQ, chromium...@chromium.org, ashleynewson+w...@chromium.org, android-web...@chromium.org, blink-...@chromium.org, kinuko...@chromium.org, asvitki...@chromium.org, feature-v...@chromium.org, jmedle...@chromium.org
          Attention needed from Alexander Cooper, Brandon Jones, Kinuko Yasuda and Yong Li (xWF)

          Rick Byers voted and added 2 comments

          Votes added by Rick Byers

          Code-Review+1

          2 comments

          Patchset-level comments
          Rick Byers . resolved

          Just one issue. Please double check that your exposed API matches the current spec (I relied on Gemini to find this discrepancy for me, I did not do an exhaustive manual review myself).

          Yong Li (xWF)

          I just went through the new API and checked the spec. Thanks!

          Rick Byers

          Thank you!

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Alexander Cooper
          • Brandon Jones
          • Kinuko Yasuda
          • Yong Li (xWF)
          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: I5cc0806e4f7ce15adc761188ede00deef960283e
          Gerrit-Change-Number: 7425292
          Gerrit-PatchSet: 12
          Gerrit-Owner: Yong Li (xWF) <yyon...@google.com>
          Gerrit-Reviewer: Alexander Cooper <alco...@chromium.org>
          Gerrit-Reviewer: Brandon Jones <baj...@chromium.org>
          Gerrit-Reviewer: Kinuko Yasuda <kin...@chromium.org>
          Gerrit-Reviewer: Rick Byers <rby...@chromium.org>
          Gerrit-Reviewer: Yong Li (xWF) <yyon...@google.com>
          Gerrit-CC: Evgenii Alekseev (xWF) <eale...@google.com>
          Gerrit-Attention: Yong Li (xWF) <yyon...@google.com>
          Gerrit-Attention: Brandon Jones <baj...@chromium.org>
          Gerrit-Attention: Alexander Cooper <alco...@chromium.org>
          Gerrit-Attention: Kinuko Yasuda <kin...@chromium.org>
          Gerrit-Comment-Date: Fri, 13 Feb 2026 21:17:07 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: Yes
          Comment-In-Reply-To: Yong Li (xWF) <yyon...@google.com>
          Comment-In-Reply-To: Rick Byers <rby...@chromium.org>
          satisfied_requirement
          unsatisfied_requirement
          open
          diffy
          Reply all
          Reply to author
          Forward
          0 new messages