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 63a62f559bd329dae0940d106c3ecd7232fdfc07..4fac8b29724600afe246f42993df1ccb531fa89d 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::CaptureFrame() { |
+void CroppingWindowCapturer::Capture() { |
if (ShouldUseScreenCapturer()) { |
if (!screen_capturer_.get()) { |
screen_capturer_.reset(ScreenCapturer::Create(options_)); |
@@ -45,9 +45,9 @@ void CroppingWindowCapturer::CaptureFrame() { |
} |
screen_capturer_->Start(this); |
} |
- screen_capturer_->CaptureFrame(); |
+ screen_capturer_->Capture(); |
} else { |
- window_capturer_->CaptureFrame(); |
+ window_capturer_->Capture(); |
} |
} |
@@ -79,7 +79,7 @@ void CroppingWindowCapturer::OnCaptureResult( |
std::unique_ptr<DesktopFrame> screen_frame) { |
if (!ShouldUseScreenCapturer()) { |
LOG(LS_INFO) << "Window no longer on top when ScreenCapturer finishes"; |
- window_capturer_->Capture(DesktopRegion()); |
+ window_capturer_->Capture(); |
return; |
} |