Bug 1873405: Relax an assertion about timing r=sefeng

When RFP is enabled and you're dealing with timestamps of
reduced precision, it's possible for these timestamps to
be equal. Relax the assertion to allow that.

Also, conceptually, it should be <= even without RFP because
you can't guarantee the OS timestamps are going to be reliable
(just increasing) and you can't guarantee anything about how
fast or slow computation is going to happen.

Differential Revision: https://phabricator.services.mozilla.com/D197946
This commit is contained in:
Tom Ritter 2024-01-10 09:56:52 +00:00
Родитель 9311a56677
Коммит 667283858e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -664,7 +664,7 @@ void PerformanceMainThread::ProcessElementTiming() {
continue;
}
MOZ_ASSERT(imagePendingRendering.mLoadTime < rawNowTime);
MOZ_ASSERT(imagePendingRendering.mLoadTime <= rawNowTime);
if (imgRequestProxy* requestProxy =
imagePendingRendering.GetImgRequestProxy()) {
LCPHelpers::CreateLCPEntryForImage(