commit | cf9899c51874e0a37686fa456244378590d2731c | [log] [tgz] |
---|---|---|
author | Henrik Boström <hbos@webrtc.org> | Thu Jan 20 08:46:16 2022 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jan 20 10:45:10 2022 |
tree | 5c61be8f2a7c6ab53e26ed40ec213aa04d62f58e | |
parent | c1ccc821bbeefc884e01ccb43b519dd51317b314 [diff] |
TaskQueueBase: Add PostDelayedHighPrecisionTask(). As per go/postdelayedtask-precision-in-webrtc we want to reduce the precision of PostDelayedTask() in order to schedule work on the CPU more efficiently. In order not to break "high precision" use cases, a new API is added to allow opting in to high precision. PostDelayedHighPrecisionTask() has the same precision that PostDelayedTask() has today, but by changing the interface's requirements on PostDelayedTask(), adding the high precision version of it will unblock making the old PostDelayedTask() API lower precision. This CL does not update implementations to support low precision so until those are updated, both PostDelayedTask() and PostDelayedHighPrecisionTask() have the same precision (=high). This CL also adds TODOs to make some rtc::Thread-specific versions of PostTask/PostDelayedTask obsolete, see https://crbug.com/webrtc/13582 for more info. Bug: webrtc:13583, webrtc:13582 Change-Id: I4c6d53d22bb299c49893ce9f3ef73a40d8c75de1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/247367 Reviewed-by: Markus Handell <handellm@webrtc.org> Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/main@{#35748}
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.