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

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

Issue 2479553006: Remove GetWindowList / GetScreenList and SelectWindow / SelectScreen from WebRTC (Closed)
Patch Set: Resolve review comments 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_directx.cc
diff --git a/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc b/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
index 770cfa212c586da6d9009bb3f312bf6008d9a9c5..bbd5c6976f76d7955b232e2a1b6a6a86c78eafe5 100644
--- a/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
+++ b/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.cc
@@ -109,15 +109,15 @@ void ScreenCapturerWinDirectx::CaptureFrame() {
callback_->OnCaptureResult(Result::SUCCESS, std::move(result));
}
-bool ScreenCapturerWinDirectx::GetScreenList(ScreenList* screens) {
+bool ScreenCapturerWinDirectx::GetSourceList(SourceList* sources) {
int screen_count = DxgiDuplicatorController::Instance()->ScreenCount();
for (int i = 0; i < screen_count; i++) {
- screens->push_back(Screen{i});
+ sources->push_back({i});
}
return true;
}
-bool ScreenCapturerWinDirectx::SelectScreen(ScreenId id) {
+bool ScreenCapturerWinDirectx::SelectSource(SourceId id) {
if (id == current_screen_id_) {
return true;
}

Powered by Google App Engine
This is Rietveld 408576698