This supports: * Full-screen capture from any display, via SelectSource(). * Changing the display, via SelectSource(), while capture is running. * Handling screen-resolution changes while capture is running. * Capturing from high-DPI displays at their native resolution. * Basic damage-tracking: the frame's updated-region is either set to empty, or the full frame area. It currently does not support: * Window capture. * Excluded windows. * Full-desktop capture across all displays. * More detailed damage-tracking. The capturer is not yet enabled. Followup CLs will add a DesktopCaptureOption to enable this capturer on supported versions of macOS. Bug: chromium:327458809 Change-Id: Ie619f6c6c1d6edf0fb9320d4fece578754a732dc Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/352544 Reviewed-by: Johannes Kron <kron@webrtc.org> Reviewed-by: Alexander Cooper <alcooper@chromium.org> Commit-Queue: Lambros Lambrou <lambroslambrou@chromium.org> Cr-Commit-Position: refs/heads/main@{#42510}
28 lines
940 B
C++
28 lines
940 B
C++
/*
|
|
* Copyright (c) 2024 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef MODULES_DESKTOP_CAPTURE_MAC_SCREEN_CAPTURER_SCK_H_
|
|
#define MODULES_DESKTOP_CAPTURE_MAC_SCREEN_CAPTURER_SCK_H_
|
|
|
|
#include <memory>
|
|
|
|
#include "modules/desktop_capture/desktop_capture_options.h"
|
|
#include "modules/desktop_capture/desktop_capturer.h"
|
|
|
|
namespace webrtc {
|
|
|
|
// A DesktopCapturer implementation that uses ScreenCaptureKit.
|
|
std::unique_ptr<DesktopCapturer> CreateScreenCapturerSck(
|
|
const DesktopCaptureOptions& options);
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // MODULES_DESKTOP_CAPTURE_MAC_SCREEN_CAPTURER_SCK_H_
|