Commit b680e487 authored by Alexander Cooper's avatar Alexander Cooper Committed by Commit Bot

Prepare for WebXRLightEstimation OT

Adds UseCounters and the necessary flag integration to conduct an origin
trial for WebXRLightEstimation.

The Origin Trial itself will not be enabled until after the I2E and the
launch bug have been approved.

I2E:
https://groups.google.com/a/chromium.org/g/blink-dev/c/zt3gLmrhTHc/m/9jxodKr5CAAJ

Bug: 1070819
Change-Id: I40f7de94cda4189445bce6996928619fc15f1d15
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2522123
Auto-Submit: Alexander Cooper <alcooper@chromium.org>
Commit-Queue: Yoav Weiss <yoavweiss@chromium.org>
Reviewed-by: default avatarYoav Weiss <yoavweiss@chromium.org>
Cr-Commit-Position: refs/heads/master@{#824792}
parent bcd03cfb
...@@ -3049,6 +3049,8 @@ enum WebFeature { ...@@ -3049,6 +3049,8 @@ enum WebFeature {
kMouseEventRelativePositionForInlineElement = 3720, kMouseEventRelativePositionForInlineElement = 3720,
kV8SharedArrayBufferConstructedWithoutIsolation = 3721, kV8SharedArrayBufferConstructedWithoutIsolation = 3721,
kV8HTMLVideoElement_GetVideoPlaybackQuality_Method = 3722, kV8HTMLVideoElement_GetVideoPlaybackQuality_Method = 3722,
kXRWebGLBindingGetReflectionCubeMap = 3723,
kXRFrameGetLightEstimate = 3724,
// Add new features immediately above this line. Don't change assigned // Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots. // numbers of any item, and don't reuse removed slots.
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
[RuntimeEnabled=WebXRHitTest, RaisesException] [RuntimeEnabled=WebXRHitTest, RaisesException]
FrozenArray<XRTransientInputHitTestResult> getHitTestResultsForTransientInput(XRTransientInputHitTestSource hitTestSource); FrozenArray<XRTransientInputHitTestResult> getHitTestResultsForTransientInput(XRTransientInputHitTestSource hitTestSource);
[RuntimeEnabled=WebXRLightEstimation, RaisesException] [RuntimeEnabled=WebXRLightEstimation, RaisesException, MeasureAs=XRFrameGetLightEstimate]
XRLightEstimate? getLightEstimate(XRLightProbe lightProbe); XRLightEstimate? getLightEstimate(XRLightProbe lightProbe);
[RuntimeEnabled=WebXRDepth, RaisesException, MeasureAs=XRFrameGetDepthInformation] [RuntimeEnabled=WebXRDepth, RaisesException, MeasureAs=XRFrameGetDepthInformation]
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
[RaisesException] constructor(XRSession session, XRWebGLRenderingContext context); [RaisesException] constructor(XRSession session, XRWebGLRenderingContext context);
// Lighting Estimation API // Lighting Estimation API
[RuntimeEnabled=WebXRLightEstimation, RaisesException] [RuntimeEnabled=WebXRLightEstimation, RaisesException, MeasureAs=XRWebGLBindingGetReflectionCubeMap]
WebGLTexture? getReflectionCubeMap(XRLightProbe lightProbe); WebGLTexture? getReflectionCubeMap(XRLightProbe lightProbe);
[RuntimeEnabled=WebXRCameraAccess] WebGLTexture? getCameraImage(XRFrame frame, XRView view); [RuntimeEnabled=WebXRCameraAccess] WebGLTexture? getCameraImage(XRFrame frame, XRView view);
......
...@@ -2209,6 +2209,7 @@ ...@@ -2209,6 +2209,7 @@
}, },
{ {
name: "WebXRLightEstimation", name: "WebXRLightEstimation",
origin_trial_feature_name: "WebXRLightEstimation",
depends_on: ["WebXRARModule"], depends_on: ["WebXRARModule"],
status: "experimental", status: "experimental",
}, },
......
...@@ -30170,6 +30170,8 @@ Called by update_use_counter_feature_enum.py.--> ...@@ -30170,6 +30170,8 @@ Called by update_use_counter_feature_enum.py.-->
<int value="3720" label="MouseEventRelativePositionForInlineElement"/> <int value="3720" label="MouseEventRelativePositionForInlineElement"/>
<int value="3721" label="V8SharedArrayBufferConstructedWithoutIsolation"/> <int value="3721" label="V8SharedArrayBufferConstructedWithoutIsolation"/>
<int value="3722" label="V8HTMLVideoElement_GetVideoPlaybackQuality_Method"/> <int value="3722" label="V8HTMLVideoElement_GetVideoPlaybackQuality_Method"/>
<int value="3723" label="XRWebGLBindingGetReflectionCubeMap"/>
<int value="3724" label="XRFrameGetLightEstimate"/>
</enum> </enum>
<enum name="FeaturePolicyAllowlistType"> <enum name="FeaturePolicyAllowlistType">
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