Removes AllowWgcDesktopCapturer feature flag

This flag is no longer used in Chrome and can now be removed.

Bug: chromium:1314868
Change-Id: Id91b3352dc7ec0543d54894cc206a6e0c7667e9e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/309960
Commit-Queue: Alexander Cooper <alcooper@chromium.org>
Reviewed-by: Alexander Cooper <alcooper@chromium.org>
Cr-Commit-Position: refs/heads/main@{#40337}
This commit is contained in:
henrika 2023-06-22 14:53:52 +02:00 committed by WebRTC LUCI CQ
parent 00a8576a67
commit 58e97b8600
2 changed files with 2 additions and 7 deletions

View file

@ -159,10 +159,6 @@ class RTC_EXPORT DesktopCaptureOptions {
}
#if defined(RTC_ENABLE_WIN_WGC)
// TODO(henrika): to be removed.
bool allow_wgc_capturer() const { return allow_wgc_capturer_; }
void set_allow_wgc_capturer(bool allow) { allow_wgc_capturer_ = allow; }
// This flag enables the WGC capturer for capturing the screen.
// This capturer should offer similar or better performance than the cropping
// capturer without the disadvantages listed above. However, the WGC capturer
@ -248,7 +244,6 @@ class RTC_EXPORT DesktopCaptureOptions {
bool allow_directx_capturer_ = false;
bool allow_cropping_window_capturer_ = false;
#if defined(RTC_ENABLE_WIN_WGC)
bool allow_wgc_capturer_ = false;
bool allow_wgc_screen_capturer_ = false;
bool allow_wgc_window_capturer_ = false;
bool allow_wgc_capturer_fallback_ = false;

View file

@ -65,7 +65,7 @@ bool DesktopCapturer::IsOccluded(const DesktopVector& pos) {
std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateWindowCapturer(
const DesktopCaptureOptions& options) {
#if defined(RTC_ENABLE_WIN_WGC)
if ((options.allow_wgc_capturer() || options.allow_wgc_window_capturer()) &&
if (options.allow_wgc_window_capturer() &&
IsWgcSupported(CaptureType::kWindow)) {
return WgcCapturerWin::CreateRawWindowCapturer(options);
}
@ -89,7 +89,7 @@ std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateWindowCapturer(
std::unique_ptr<DesktopCapturer> DesktopCapturer::CreateScreenCapturer(
const DesktopCaptureOptions& options) {
#if defined(RTC_ENABLE_WIN_WGC)
if ((options.allow_wgc_capturer() || options.allow_wgc_screen_capturer()) &&
if (options.allow_wgc_screen_capturer() &&
IsWgcSupported(CaptureType::kScreen)) {
return WgcCapturerWin::CreateRawScreenCapturer(options);
}