From 5f78ed6eafa40451b61747978d134afda42ca4d6 Mon Sep 17 00:00:00 2001 From: henrika Date: Fri, 13 Oct 2023 14:41:59 +0200 Subject: [PATCH] Minor change in comment for use of an IGraphicsCaptureSession3 API Makes it more clear that a certain API is only supported in Windows 11. Bug: webrtc:15451 Change-Id: Ic3abfb2cbf0e30f9cb722ac843876f41279bf200 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/323161 Reviewed-by: Alexander Cooper Commit-Queue: Henrik Andreassson Cr-Commit-Position: refs/heads/main@{#40931} --- modules/desktop_capture/win/wgc_capture_session.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/desktop_capture/win/wgc_capture_session.cc b/modules/desktop_capture/win/wgc_capture_session.cc index e220e4f4f8..827f257717 100644 --- a/modules/desktop_capture/win/wgc_capture_session.cc +++ b/modules/desktop_capture/win/wgc_capture_session.cc @@ -190,8 +190,8 @@ HRESULT WgcCaptureSession::StartCapture(const DesktopCaptureOptions& options) { // By default, the WGC capture API adds a yellow border around the captured // window or display to indicate that a capture is in progress. The section // below is an attempt to remove this yellow border to make the capture - // experience more inline with the DXGI capture path. The QueryInterface call - // will silently fail on Windows versions lower than 2104 (10.0.20348.0). + // experience more inline with the DXGI capture path. + // This requires 10.0.20348.0 or later, which practically means Windows 11. ComPtr session3; if (SUCCEEDED(session_->QueryInterface( ABI::Windows::Graphics::Capture::IID_IGraphicsCaptureSession3,