Commit a0ad185a authored by Luis G Garcia's avatar Luis G Garcia Committed by Commit Bot

Creating WebXRCameraAccess runtime feature.

I2P: https://groups.google.com/a/chromium.org/d/msg/blink-dev/4kMGCyCUIao/5vjPk4tuAQAJ

Change-Id: I9969f0c6d65a7afce14b5058c6719599c72dad80
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2225546
Commit-Queue: Luis Garcia <luisggarcia@google.com>
Reviewed-by: default avatarPiotr Bialecki <bialpio@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Reviewed-by: default avatarChris Harrelson <chrishtr@chromium.org>
Reviewed-by: default avatarKlaus Weidner <klausw@chromium.org>
Cr-Commit-Position: refs/heads/master@{#775295}
parent be8a7ef9
......@@ -215,6 +215,7 @@ void SetRuntimeFeaturesFromChromiumFeatures() {
{wf::EnableWebXRIncubations, features::kWebXrIncubations, kEnableOnly},
{wf::EnableWebXRAnchors, features::kWebXrIncubations, kEnableOnly},
{wf::EnableWebXRLightEstimation, features::kWebXrIncubations, kEnableOnly},
{wf::EnableWebXRCameraAccess, features::kWebXrIncubations, kEnableOnly},
{wf::EnableUserActivationPostMessageTransfer,
features::kUserActivationPostMessageTransfer, kUseFeatureState},
{wf::EnableUserActivationSameOriginVisibility,
......
......@@ -189,6 +189,7 @@ class WebRuntimeFeatures {
BLINK_PLATFORM_EXPORT static void EnableWebXRHitTest(bool);
BLINK_PLATFORM_EXPORT static void EnableWebXRIncubations(bool);
BLINK_PLATFORM_EXPORT static void EnableWebXRLightEstimation(bool);
BLINK_PLATFORM_EXPORT static void EnableWebXRCameraAccess(bool);
BLINK_PLATFORM_EXPORT static void EnableXSLT(bool);
BLINK_PLATFORM_EXPORT static void ForceOverlayFullscreenVideo(bool);
BLINK_PLATFORM_EXPORT static void EnableTimerThrottlingForBackgroundTabs(
......
......@@ -475,6 +475,10 @@ void WebRuntimeFeatures::EnableWebXRLightEstimation(bool enable) {
RuntimeEnabledFeatures::SetWebXRLightEstimationEnabled(enable);
}
void WebRuntimeFeatures::EnableWebXRCameraAccess(bool enable) {
RuntimeEnabledFeatures::SetWebXRCameraAccessEnabled(enable);
}
void WebRuntimeFeatures::EnablePresentationAPI(bool enable) {
RuntimeEnabledFeatures::SetPresentationEnabled(enable);
}
......
......@@ -2024,6 +2024,11 @@
depends_on: ["WebXR"],
status: "stable",
},
{
name: "WebXRCameraAccess",
depends_on: ["WebXRARModule"],
status: "experimental",
},
{
name: "WebXRHitTest",
depends_on: ["WebXRARModule"],
......
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