commit | feabcdb76be3b06c5b2c336f8eba6b6dbb8ab392 | [log] [tgz] |
---|---|---|
author | fizzfang <fangkb555@gmail.com> | Fri Jan 24 08:47:11 2025 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 29 19:40:53 2025 |
tree | ed15462f493176e9e9c9fb69240cbc64b7894a6a | |
parent | eb688d6e80c5a32418ef5d89f098b701b7f377a8 [diff] |
Reduce redundant memory allocation when capturing a single monitor. When capturing only one display, it is unnecessary to use DoDuplicateAll, which allocates bitmap image memory for a rectangle encompassing all screens and captures all displays. In this case, I switch to DoDuplicateOne. I have added an int parameter to GetNumFrameCaptured and EnsureFrameCaptured to distinguish which display's skip behavior is currently being executed. After the modification, when capturing a single monitor in a multi-monitor environment, only the bitmap image memory of the size of the captured monitor will be allocated, rather than for all monitors. Bug: webrtc:391914255 Change-Id: Iee56796c50282beaf1dbeef47f5937fe7fe94a05 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/375181 Reviewed-by: Joe Downing <joedow@chromium.org> Commit-Queue: Alexander Cooper <alcooper@chromium.org> Reviewed-by: Alexander Cooper <alcooper@chromium.org> Cr-Commit-Position: refs/heads/main@{#43822}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.