Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 925d9640 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 5797413 from 549ea7eb to qt-qpr1-release

Change-Id: Ic07755cc40dd30c88e73859140d7c8364bc82133
parents 4a987ea8 549ea7eb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ void LayerInfo::setLastPresentTime(nsecs_t lastPresentTime) {
    mLastPresentTime = lastPresentTime;
    // Ignore time diff that are too high - those are stale values
    if (timeDiff > OBSOLETE_TIME_EPSILON_NS.count()) return;
    const nsecs_t refreshDuration = (timeDiff > 0) ? timeDiff : mMinRefreshDuration;
    const nsecs_t refreshDuration = std::max(timeDiff, mMinRefreshDuration);
    const int fps = 1e9f / refreshDuration;
    mRefreshRateHistory.insertRefreshRate(fps);
}