diff --git a/modules/desktop_capture/desktop_capture_types.h b/modules/desktop_capture/desktop_capture_types.h index fd5f881122..9627076eea 100644 --- a/modules/desktop_capture/desktop_capture_types.h +++ b/modules/desktop_capture/desktop_capture_types.h @@ -25,6 +25,8 @@ typedef intptr_t WindowId; const WindowId kNullWindowId = 0; +const int64_t kInvalidDisplayId = -1; + // Type used to identify screens on the desktop. Values are platform-specific: // - On Windows: integer display device index. // - On OSX: CGDirectDisplayID cast to intptr_t. @@ -33,9 +35,9 @@ const WindowId kNullWindowId = 0; // On Windows, ScreenId is implementation dependent: sending a ScreenId from one // implementation to another usually won't work correctly. #if defined(CHROMEOS) - typedef int64_t ScreenId; +typedef int64_t ScreenId; #else - typedef intptr_t ScreenId; +typedef intptr_t ScreenId; #endif // The screen id corresponds to all screen combined together. diff --git a/modules/desktop_capture/desktop_capturer.h b/modules/desktop_capture/desktop_capturer.h index 513bf50c57..3e8f0dcac5 100644 --- a/modules/desktop_capture/desktop_capturer.h +++ b/modules/desktop_capture/desktop_capturer.h @@ -86,6 +86,10 @@ class RTC_EXPORT DesktopCapturer { // TODO(https://crbug.com/1369162): Remove or refactor this value. WindowId in_process_id = kNullWindowId; #endif + + // The display's unique ID. If no ID is defined, it will hold the value + // kInvalidDisplayId. + int64_t display_id = kInvalidDisplayId; }; typedef std::vector SourceList;