From cd16d06f74e2597083247bbfe3b2958d69d123a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eero=20H=C3=A4kkinen?= Date: Tue, 13 Aug 2024 13:03:41 -0700 Subject: [PATCH] [MediaCapture Extensions] Fix background segmentation mask constraints This CL fixes background segmentation mask constraints to be passed to the imagecapture module and adds a web platform test to test background segmentation mask constraints and settings. Background segmentation mask feature is behind a flag: chrome --enable-blink-features=MediaCaptureCameraControls Intent to Prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/nWEqxi83rus Spec: https://github.com/w3c/mediacapture-extensions/pull/142 Explainer: https://github.com/riju/backgroundBlur/blob/main/explainer.md#background-segmentation-mask-api Bug: 349939554 Change-Id: I1c11bd8919272147ed28f699a38dd8922cefc4c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5783519 Reviewed-by: Rijubrata Bhaumik Commit-Queue: Eero Hakkinen Reviewed-by: Guido Urdaneta Cr-Commit-Position: refs/heads/main@{#1341202} --- mediacapture-extensions/GUM-backgroundBlur.https.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mediacapture-extensions/GUM-backgroundBlur.https.html b/mediacapture-extensions/GUM-backgroundBlur.https.html index 5383e088a62abc..4fba3692f6a610 100644 --- a/mediacapture-extensions/GUM-backgroundBlur.https.html +++ b/mediacapture-extensions/GUM-backgroundBlur.https.html @@ -1,12 +1,12 @@ -Test background blur support +Test background blur and segmentation mask support

Description

-

This test checks background blur support.

+

This test checks background blur and segmentation mask support.

@@ -14,7 +14,8 @@

Description

"use strict"; const constraintSet = { - backgroundBlur: true + backgroundBlur: true, + backgroundSegmentationMask: true, }; Object.keys(constraintSet).forEach(property => {