From 0d43caac373f9df59e21038da51efd65a766e47d Mon Sep 17 00:00:00 2001 From: Alex Cooper Date: Wed, 28 Sep 2022 09:43:53 -0700 Subject: [PATCH] Add WindowId to Source on ChromeOS This change adds support to allow ChromeOS capturers to also pass a WindowId with a source. This WindowID can be used to help allow plumbing and passing an Id that the capturing process knows about, in case it wants to use any in-process capturing logic. Bug: chromium:1273189 Change-Id: Ibcf494a75aec06eb1c44e6ff5fbdd9e2952e9b7e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/267086 Auto-Submit: Alexander Cooper Reviewed-by: Mark Foltz Commit-Queue: Mark Foltz Cr-Commit-Position: refs/heads/main@{#38238} --- modules/desktop_capture/desktop_capturer.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/desktop_capture/desktop_capturer.h b/modules/desktop_capture/desktop_capturer.h index 2dd0edcf56..513bf50c57 100644 --- a/modules/desktop_capture/desktop_capturer.h +++ b/modules/desktop_capture/desktop_capturer.h @@ -81,6 +81,11 @@ class RTC_EXPORT DesktopCapturer { // Title of the window or screen in UTF-8 encoding, maybe empty. This field // should not be used to identify a source. std::string title; + +#if defined(CHROMEOS) + // TODO(https://crbug.com/1369162): Remove or refactor this value. + WindowId in_process_id = kNullWindowId; +#endif }; typedef std::vector SourceList;