mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1059803. Change FPSCounter to not use ToSecondsSigDigits() part 2
ToSecondsSigDigits() should only really be used for printing values. --HG-- extra : rebase_source : b5d62b76f95e248f7f14e8559a6ab5a586d26135
This commit is contained in:
parent
21ba18e307
commit
c9e5585926
@ -103,7 +103,7 @@ FPSCounter::IteratedFullInterval(TimeStamp aTimestamp, double aDuration) {
|
||||
|
||||
TimeStamp currentStamp = mFrameTimestamps[mIteratorIndex];
|
||||
TimeDuration duration = aTimestamp - currentStamp;
|
||||
return duration.ToSecondsSigDigits() >= aDuration;
|
||||
return duration.ToSeconds() >= aDuration;
|
||||
}
|
||||
|
||||
void
|
||||
@ -187,7 +187,7 @@ FPSCounter::BuildHistogram(std::map<int, int>& aFpsData)
|
||||
currentTimeStamp = GetNextTimeStamp();
|
||||
TimeDuration interval = currentIntervalStart - currentTimeStamp;
|
||||
|
||||
if (interval.ToSecondsSigDigits() >= 1.0 ) {
|
||||
if (interval.ToSeconds() >= 1.0 ) {
|
||||
currentIntervalStart = currentTimeStamp;
|
||||
aFpsData[frameCount]++;
|
||||
frameCount = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user