Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(503)

Unified Diff: webrtc/modules/desktop_capture/cropping_window_capturer.cc

Issue 2409833002: Remove DesktopRegion parameter in DesktopCapturer::Capture. (Closed)
Patch Set: Change Capture2 to CaptureFrame Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..63a62f559bd329dae0940d106c3ecd7232fdfc07 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::CaptureFrame() {
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_->CaptureFrame();
} else {
- window_capturer_->Capture(region);
+ window_capturer_->CaptureFrame();
}
}

Powered by Google App Engine
This is Rietveld 408576698