Index: webrtc/modules/desktop_capture/cropping_window_capturer.cc |
diff --git a/webrtc/modules/desktop_capture/cropping_window_capturer.cc b/webrtc/modules/desktop_capture/cropping_window_capturer.cc |
index 50aaeea0308d404c2335438d63c8d03472d0def9..9321b44ed8eac18ac3c0518a820ffe06f5af3853 100644 |
--- a/webrtc/modules/desktop_capture/cropping_window_capturer.cc |
+++ b/webrtc/modules/desktop_capture/cropping_window_capturer.cc |
@@ -36,7 +36,7 @@ void CroppingWindowCapturer::SetSharedMemoryFactory( |
window_capturer_->SetSharedMemoryFactory(std::move(shared_memory_factory)); |
} |
-void CroppingWindowCapturer::Capture(const DesktopRegion& region) { |
+void CroppingWindowCapturer::Capture2() { |
if (ShouldUseScreenCapturer()) { |
if (!screen_capturer_.get()) { |
screen_capturer_.reset(ScreenCapturer::Create(options_)); |
@@ -45,9 +45,9 @@ void CroppingWindowCapturer::Capture(const DesktopRegion& region) { |
} |
screen_capturer_->Start(this); |
} |
- screen_capturer_->Capture(region); |
+ screen_capturer_->Capture2(); |
} else { |
- window_capturer_->Capture(region); |
+ window_capturer_->Capture2(); |
} |
} |