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()); |
} |