mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00
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:
parent
00a8576a67
commit
58e97b8600
2 changed files with 2 additions and 7 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue