commit 0bfa0288ec67b17f74eb439bc6028b317a36f4d9
parent 98ed7ddd62131f52137902a64e5338bce14b9a77
Author: Dan Baker <dbaker@mozilla.com>
Date: Thu, 23 Oct 2025 16:39:38 -0600
Bug 1995393 - Vendor libwebrtc from d242314f3b
Upstream commit: https://webrtc.googlesource.com/src/+/d242314f3b57e42a8a83cba535b69d68bc9df66e
Use injected clock in overuse_frame_detector
Stops using the global clock methods from time_utils.
This CL was uploaded by an experimental version of git cl split
(https://crbug.com/389069356).
R=danilchap@webrtc.org, hta@webrtc.org
Bug: webrtc:42223992
Change-Id: I2c47b26e6145756f2f857adc56e8a7bc2c8990f7
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/404945
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Auto-Submit: Evan Shrubsole <eshr@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#45361}
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/third_party/libwebrtc/README.mozilla.last-vendor b/third_party/libwebrtc/README.mozilla.last-vendor
@@ -1,4 +1,4 @@
# ./mach python dom/media/webrtc/third_party_build/vendor-libwebrtc.py --from-local /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc --commit mozpatches libwebrtc
-libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-23T22:37:02.391532+00:00.
+libwebrtc updated from /Users/danielbaker/elm/.moz-fast-forward/moz-libwebrtc commit mozpatches on 2025-10-23T22:39:26.209121+00:00.
# base of lastest vendoring
-008a11c2cf
+d242314f3b
diff --git a/third_party/libwebrtc/video/adaptation/overuse_frame_detector.cc b/third_party/libwebrtc/video/adaptation/overuse_frame_detector.cc
@@ -600,7 +600,7 @@ void OveruseFrameDetector::CheckForOveruse(
!encode_usage_percent_)
return;
- int64_t now_ms = TimeMillis();
+ int64_t now_ms = env_.clock().TimeInMilliseconds();
const char* action = "NoAction";
if (IsOverusing(*encode_usage_percent_)) {