From f1b38e94853c1d3e643ff4de45d9af0e5e73bc0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eero=20H=C3=A4kkinen?= Date: Thu, 15 Aug 2024 22:05:45 +0000 Subject: [PATCH] Bug 1912929 [wpt PR 47585] - [MediaCapture Extensions] Fix background segmentation mask constraints, a=testonly Automatic update from web-platform-tests [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} -- wpt-commits: 732899be1aa3e1efcb01cab15852eb4c05bfe9b5 wpt-pr: 47585 --- .../mediacapture-extensions/GUM-backgroundBlur.https.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/testing/web-platform/tests/mediacapture-extensions/GUM-backgroundBlur.https.html b/testing/web-platform/tests/mediacapture-extensions/GUM-backgroundBlur.https.html index 5383e088a62ab..4fba3692f6a61 100644 --- a/testing/web-platform/tests/mediacapture-extensions/GUM-backgroundBlur.https.html +++ b/testing/web-platform/tests/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 => {