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

Unified Diff: webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.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/win/screen_capturer_win_magnifier.cc
diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
index e5a37c97d50d0b6526d836c8bcff070b9411a35b..5ffd1f996a4d13489e39a5aff82eee55990d8799 100644
--- a/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
+++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
@@ -72,7 +72,7 @@ void ScreenCapturerWinMagnifier::SetSharedMemoryFactory(
shared_memory_factory_ = std::move(shared_memory_factory);
}
-void ScreenCapturerWinMagnifier::Capture(const DesktopRegion& region) {
+void ScreenCapturerWinMagnifier::CaptureFrame() {
if (!magnifier_initialized_ ||
!magnifier_capture_succeeded_ ||
GetSystemMetrics(SM_CMONITORS) != 1) {
@@ -82,7 +82,7 @@ void ScreenCapturerWinMagnifier::Capture(const DesktopRegion& region) {
"initialization or last capture attempt failed, or "
"execute on multi-screen system.";
StartFallbackCapturer();
- fallback_capturer_->Capture(region);
+ fallback_capturer_->CaptureFrame();
return;
}
@@ -111,7 +111,7 @@ void ScreenCapturerWinMagnifier::Capture(const DesktopRegion& region) {
LOG_F(LS_WARNING) << "Switching to the fallback screen capturer because "
"last capture attempt failed.";
StartFallbackCapturer();
- fallback_capturer_->Capture(region);
+ fallback_capturer_->CaptureFrame();
return;
}

Powered by Google App Engine
This is Rietveld 408576698