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 <alcooper@chromium.org> Commit-Queue: Henrik Andreassson <henrika@webrtc.org> Cr-Commit-Position: refs/heads/main@{#40931}
This commit is contained in:
parent
d80d993247
commit
5f78ed6eaf
@ -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<ABI::Windows::Graphics::Capture::IGraphicsCaptureSession3> session3;
|
||||
if (SUCCEEDED(session_->QueryInterface(
|
||||
ABI::Windows::Graphics::Capture::IID_IGraphicsCaptureSession3,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user