зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1302713 - Reduce the amount of false positive in the refresh driver warnings. r=mchang
This commit is contained in:
Родитель
54fdfadaf7
Коммит
c2a1cc472f
|
@ -2062,14 +2062,14 @@ nsRefreshDriver::IsWaitingForPaint(mozilla::TimeStamp aTime)
|
|||
return false;
|
||||
}
|
||||
|
||||
if (aTime > (mMostRecentTick + TimeDuration::FromMilliseconds(mWarningThreshold * 1000))) {
|
||||
gfxCriticalNote << "Refresh driver waiting for the compositor for"
|
||||
<< (aTime - mMostRecentTick).ToSeconds()
|
||||
<< " seconds.";
|
||||
mWarningThreshold *= 2;
|
||||
}
|
||||
|
||||
if (mWaitingForTransaction) {
|
||||
if (mSkippedPaints && aTime > (mMostRecentTick + TimeDuration::FromMilliseconds(mWarningThreshold * 1000))) {
|
||||
gfxCriticalNote << "Refresh driver waiting for the compositor for "
|
||||
<< (aTime - mMostRecentTick).ToSeconds()
|
||||
<< " seconds.";
|
||||
mWarningThreshold *= 2;
|
||||
}
|
||||
|
||||
mSkippedPaints = true;
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче