Commit 817e4890 authored by Alexander Cooper's avatar Alexander Cooper Committed by Commit Bot

Add UseCounter for XrSession.RequestLightProbe

The OT infrastrucutre requires a single UseCounter to measure. This adds
a use counter for RequestLightProbe, which must be gotten before either
of the other Light Estimation API methods can be used.

Bug: 1148871
Change-Id: Ic9ac4b81fca1460497d4ff0753b7ceadcb982dd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2538132
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Commit-Queue: Piotr Bialecki <bialpio@chromium.org>
Auto-Submit: Alexander Cooper <alcooper@chromium.org>
Reviewed-by: default avatarPiotr Bialecki <bialpio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#827407}
parent f3eb6cea
...@@ -3057,6 +3057,7 @@ enum WebFeature { ...@@ -3057,6 +3057,7 @@ enum WebFeature {
kMediaStreamTrackGenerator = 3728, kMediaStreamTrackGenerator = 3728,
kMediaStreamTrackProcessor = 3729, kMediaStreamTrackProcessor = 3729,
kAddEventListenerWithAbortSignal = 3730, kAddEventListenerWithAbortSignal = 3730,
kXRSessionRequestLightProbe = 3731,
// 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.
......
...@@ -79,7 +79,7 @@ enum XRReflectionFormat { ...@@ -79,7 +79,7 @@ enum XRReflectionFormat {
[RuntimeEnabled=WebXRHitTest, CallWith=ScriptState, MeasureAs=XRSessionRequestHitTestSourceForTransientInput, RaisesException] [RuntimeEnabled=WebXRHitTest, CallWith=ScriptState, MeasureAs=XRSessionRequestHitTestSourceForTransientInput, RaisesException]
Promise<XRTransientInputHitTestSource> requestHitTestSourceForTransientInput(XRTransientInputHitTestOptionsInit options); Promise<XRTransientInputHitTestSource> requestHitTestSourceForTransientInput(XRTransientInputHitTestOptionsInit options);
[RuntimeEnabled=WebXRLightEstimation, CallWith=ScriptState, RaisesException] [RuntimeEnabled=WebXRLightEstimation, CallWith=ScriptState, MeasureAs=XRSessionRequestLightProbe, RaisesException]
Promise<XRLightProbe> requestLightProbe(optional XRLightProbeInit options = {}); Promise<XRLightProbe> requestLightProbe(optional XRLightProbeInit options = {});
[RuntimeEnabled=WebXRImageTracking, CallWith=ScriptState, RaisesException] [RuntimeEnabled=WebXRImageTracking, CallWith=ScriptState, RaisesException]
......
...@@ -30262,6 +30262,7 @@ Called by update_use_counter_feature_enum.py.--> ...@@ -30262,6 +30262,7 @@ Called by update_use_counter_feature_enum.py.-->
<int value="3728" label="MediaStreamTrackGenerator"/> <int value="3728" label="MediaStreamTrackGenerator"/>
<int value="3729" label="MediaStreamTrackProcessor"/> <int value="3729" label="MediaStreamTrackProcessor"/>
<int value="3730" label="AddEventListenerWithAbortSignal"/> <int value="3730" label="AddEventListenerWithAbortSignal"/>
<int value="3731" label="XRSessionRequestLightProbe"/>
</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