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

Unified Diff: webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc

Issue 2468753002: Add CreateWindowCapturer() and CreateScreenCapturer() in DesktopCapturer (Closed)
Patch Set: Build break without X11 Created 4 years, 1 month 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 5ffd1f996a4d13489e39a5aff82eee55990d8799..b4256810ca9b56af5f5fd3bbf2087a6263fad30b 100644
--- a/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
+++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_magnifier.cc
@@ -36,7 +36,7 @@ static LPCTSTR kMagnifierWindowName = L"MagnifierWindow";
Atomic32 ScreenCapturerWinMagnifier::tls_index_(TLS_OUT_OF_INDEXES);
ScreenCapturerWinMagnifier::ScreenCapturerWinMagnifier(
- std::unique_ptr<ScreenCapturer> fallback_capturer)
+ std::unique_ptr<DesktopCapturer> fallback_capturer)
: fallback_capturer_(std::move(fallback_capturer)) {}
ScreenCapturerWinMagnifier::~ScreenCapturerWinMagnifier() {
@@ -139,7 +139,7 @@ bool ScreenCapturerWinMagnifier::SelectScreen(ScreenId id) {
current_screen_id_ = id;
if (fallback_capturer_started_)
- fallback_capturer_->SelectScreen(id);
+ fallback_capturer_->SelectSource(id);
return valid;
}
@@ -382,7 +382,7 @@ void ScreenCapturerWinMagnifier::StartFallbackCapturer() {
fallback_capturer_started_ = true;
fallback_capturer_->Start(callback_);
- fallback_capturer_->SelectScreen(current_screen_id_);
+ fallback_capturer_->SelectSource(current_screen_id_);
}
}

Powered by Google App Engine
This is Rietveld 408576698