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

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

Issue 2971393002: Output DeviceName from various windows ScreenCapturer related implementations (Closed)
Patch Set: Resolve review comments Created 3 years, 5 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/dxgi_adapter_duplicator.cc
diff --git a/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc b/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc
index 4870c754d24f2b46cc3e53d6cac26557de12f7fc..c2a0794fe34fffb67d033d91949722ce0c750bdb 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc
+++ b/webrtc/modules/desktop_capture/win/dxgi_adapter_duplicator.cc
@@ -146,6 +146,11 @@ DesktopRect DxgiAdapterDuplicator::ScreenRect(int id) const {
return duplicators_[id].desktop_rect();
}
+const std::string& DxgiAdapterDuplicator::GetDeviceName(int id) const {
+ RTC_DCHECK(id >= 0 && id < static_cast<int>(duplicators_.size()));
+ return duplicators_[id].device_name();
+}
+
int DxgiAdapterDuplicator::screen_count() const {
return static_cast<int>(duplicators_.size());
}

Powered by Google App Engine
This is Rietveld 408576698