commit 48b3ba33af3ff1520edd71a47863e332c79776fc parent b7bf11d7e4480fdee2c60e0eaa01cf8b9efdbda1 Author: Michael Froman <mfroman@mozilla.com> Date: Wed, 8 Oct 2025 17:38:38 -0500 Bug 1993083 - Vendor libwebrtc from fc3d84f832 Upstream commit: https://webrtc.googlesource.com/src/+/fc3d84f832fe5c6f6524866f4faf49bac3fd8c44 Update frame damage_region when previous_frame is false Bug: chromium:409473386 Change-Id: I4b0a01711ed710b9187837af3610163665a62ba5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/398560 Commit-Queue: Palak Agarwal <agpalak@google.com> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Cr-Commit-Position: refs/heads/main@{#45053} Diffstat:
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/third_party/libwebrtc/README.mozilla.last-vendor b/third_party/libwebrtc/README.mozilla.last-vendor @@ -1,4 +1,4 @@ # ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc -libwebrtc updated from /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-08T22:37:27.034223+00:00. +libwebrtc updated from /home/mfroman/mozilla/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-08T22:38:30.957733+00:00. # base of lastest vendoring -6dc30b361c +fc3d84f832 diff --git a/third_party/libwebrtc/modules/desktop_capture/win/wgc_capture_session.cc b/third_party/libwebrtc/modules/desktop_capture/win/wgc_capture_session.cc @@ -589,6 +589,15 @@ HRESULT WgcCaptureSession::ProcessFrame() { // Mark resized frames as damaged. damage_region_.SetRect(DesktopRect::MakeSize(current_frame->size())); } + } else{ + // Mark a `damage_region_` even if there is no previous frame. This + // condition does not create any increased overhead but is useful while + // using FullScreenWindowDetector, where it would create a new + // WgcCaptureSession(with no previous frame) for the slide show window but + // the DesktopCaptureDevice instance might have already received frames + // from the editor window's WgcCaptureSession which would have activated + // the zero-hertz mode. + damage_region_.SetRect(DesktopRect::MakeSize(current_frame->size())); } } diff --git a/third_party/libwebrtc/moz-patch-stack/s0080.patch b/third_party/libwebrtc/moz-patch-stack/s0080.patch @@ -11,7 +11,7 @@ Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/0aac94794aad2ddb6 1 file changed, 6 insertions(+) diff --git a/modules/desktop_capture/win/wgc_capture_session.cc b/modules/desktop_capture/win/wgc_capture_session.cc -index f024349695..ec6ddb4713 100644 +index dc744d46c6..6c1f93425e 100644 --- a/modules/desktop_capture/win/wgc_capture_session.cc +++ b/modules/desktop_capture/win/wgc_capture_session.cc @@ -200,6 +200,11 @@ HRESULT WgcCaptureSession::StartCapture(const DesktopCaptureOptions& options) {