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

Unified Diff: webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h

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_duplicator_controller.h
diff --git a/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h b/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h
index 41a876b1f359490421a66fa38de087e7fb6aa06b..4b4399d7b9612550bac47c01aee29ee213db5991 100644
--- a/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h
+++ b/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h
@@ -14,6 +14,7 @@
#include <D3DCommon.h>
#include <atomic>
+#include <string>
#include <vector>
#include "webrtc/modules/desktop_capture/desktop_geometry.h"
@@ -101,6 +102,12 @@ class DxgiDuplicatorController {
// support DXGI based capturer, this function returns 0.
int ScreenCount();
+ // Returns the device names of all screens on the system in utf8 encoding.
+ // These screens can be retrieved by an integer in the range of
+ // [0, output->size()). If system does not support DXGI based capturer, this
+ // function returns false.
+ bool GetDeviceNames(std::vector<std::string>* output);
+
private:
// DxgiFrameContext calls private Unregister(Context*) function during
// destructing.
@@ -183,6 +190,8 @@ class DxgiDuplicatorController {
int ScreenCountUnlocked() const;
+ void GetDeviceNamesUnlocked(std::vector<std::string>* output) const;
+
// Returns the desktop size of the selected screen |monitor_id|. Setting
// |monitor_id| < 0 to return the entire screen size.
DesktopSize SelectedDesktopSize(int monitor_id) const;

Powered by Google App Engine
This is Rietveld 408576698