Commit 14a2c379 authored by Alexander Cooper's avatar Alexander Cooper Committed by Commit Bot

Expose XRWebGLBinding interface

The XRWebGLBinding is defined in the WebXR Layers spec
(https://immersive-web.github.io/layers/); however, it is also required
by both the Lighting Estimation and Raw Camera Access specs.

We are not actively working on the layers spec; however, we want to
Origin Trial both Lighting Estimationa nd Raw Camera Access. This change
simplifies these cross-spec dependencies by shipping the empty
XRWebGLBinding interface.

I2S:
https://groups.google.com/u/1/a/chromium.org/g/blink-dev/c/6J0yfRuMmSU

Bug: 1070819
Change-Id: I8626fa854d892171542cec06a0befac76187fd84
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2519938
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Reviewed-by: default avatarBrandon Jones <bajones@chromium.org>
Reviewed-by: default avatarYoav Weiss <yoavweiss@chromium.org>
Cr-Commit-Position: refs/heads/master@{#827380}
parent e8da6745
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
// https://immersive-web.github.io/layers/#XRWebGLBindingtype // https://immersive-web.github.io/layers/#XRWebGLBindingtype
[ [
SecureContext, SecureContext,
Exposed=Window, Exposed=Window
RuntimeEnabled=WebXRLightEstimation
] interface XRWebGLBinding { ] interface XRWebGLBinding {
[RaisesException] constructor(XRSession session, XRWebGLRenderingContext context); [RaisesException] constructor(XRSession session, XRWebGLRenderingContext context);
......
...@@ -9326,6 +9326,9 @@ interface XRViewport ...@@ -9326,6 +9326,9 @@ interface XRViewport
getter x getter x
getter y getter y
method constructor method constructor
interface XRWebGLBinding
attribute @@toStringTag
method constructor
interface XRWebGLLayer : XRLayer interface XRWebGLLayer : XRLayer
static method getNativeFramebufferScaleFactor static method getNativeFramebufferScaleFactor
attribute @@toStringTag attribute @@toStringTag
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment