Commit cd07df11 authored by Piotr Bialecki's avatar Piotr Bialecki Committed by Commit Bot

WebXR depth: rename feature descriptor & adjust samples

Change-Id: I87a6a19fba49d8d8719d189ea4be026eb36261bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2425128Reviewed-by: default avatarBrandon Jones <bajones@chromium.org>
Commit-Queue: Piotr Bialecki <bialpio@chromium.org>
Cr-Commit-Position: refs/heads/master@{#809833}
parent 4549c336
...@@ -138,7 +138,7 @@ base::Optional<device::mojom::XRSessionFeature> StringToXRSessionFeature( ...@@ -138,7 +138,7 @@ base::Optional<device::mojom::XRSessionFeature> StringToXRSessionFeature(
feature_string == "plane-detection") { feature_string == "plane-detection") {
return device::mojom::XRSessionFeature::PLANE_DETECTION; return device::mojom::XRSessionFeature::PLANE_DETECTION;
} else if (RuntimeEnabledFeatures::WebXRDepthEnabled(context) && } else if (RuntimeEnabledFeatures::WebXRDepthEnabled(context) &&
feature_string == "depth") { feature_string == "depth-sensing") {
return device::mojom::XRSessionFeature::DEPTH; return device::mojom::XRSessionFeature::DEPTH;
} }
......
...@@ -98,7 +98,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ...@@ -98,7 +98,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// Requests an immersive session with environment integration. // Requests an immersive session with environment integration.
let options = { let options = {
requiredFeatures: ['depth'], requiredFeatures: ['depth-sensing'],
}; };
navigator.xr.requestSession('immersive-ar', options).then((session) => { navigator.xr.requestSession('immersive-ar', options).then((session) => {
......
...@@ -99,7 +99,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ...@@ -99,7 +99,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// Requests an immersive session with environment integration. // Requests an immersive session with environment integration.
let options = { let options = {
requiredFeatures: ['depth'], requiredFeatures: ['depth-sensing'],
}; };
navigator.xr.requestSession('immersive-ar', options).then((session) => { navigator.xr.requestSession('immersive-ar', options).then((session) => {
......
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