Bug 1302713 - Reduce the amount of false positive in the refresh driver warnings. r=mchang
This commit is contained in:
@@ -2062,14 +2062,14 @@ nsRefreshDriver::IsWaitingForPaint(mozilla::TimeStamp aTime)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aTime > (mMostRecentTick + TimeDuration::FromMilliseconds(mWarningThreshold * 1000))) {
|
if (mWaitingForTransaction) {
|
||||||
gfxCriticalNote << "Refresh driver waiting for the compositor for"
|
if (mSkippedPaints && aTime > (mMostRecentTick + TimeDuration::FromMilliseconds(mWarningThreshold * 1000))) {
|
||||||
|
gfxCriticalNote << "Refresh driver waiting for the compositor for "
|
||||||
<< (aTime - mMostRecentTick).ToSeconds()
|
<< (aTime - mMostRecentTick).ToSeconds()
|
||||||
<< " seconds.";
|
<< " seconds.";
|
||||||
mWarningThreshold *= 2;
|
mWarningThreshold *= 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mWaitingForTransaction) {
|
|
||||||
mSkippedPaints = true;
|
mSkippedPaints = true;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user