Fix race condition in CroppingWindowCapturer https://webrtc-review.googlesource.com/c/src/+/467820 fixed an issue where the captured window may have moved during capture, and thus the frame would have the window at it's original location (e.g. when CaptureFrame was called), but we cropped to it's new location (e.g. when OnCaptureResult was called), thus potential leaking pixels. This addresses the inverse of that. If we actually capture closer to when `OnCaptureResult` is called and the window has moved, we could now be capturing the old location where the window no longer is and is thus leaking pixels. Since we cannot assert whether capture happened closer to `CaptureFrame` or `OnCaptureResult`, we simply attempt to recapture the frame if the window position has moved between these two calls. Fixed: chromium:517207235 Change-Id: I98f41c709b0bcf0285e258e7421af3481692a1ba Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/476400 Reviewed-by: Mark Foltz <mfoltz@chromium.org> Auto-Submit: Alexander Cooper <alcooper@chromium.org> Commit-Queue: Alexander Cooper <alcooper@chromium.org> Cr-Commit-Position: refs/heads/main@{#47851}
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.