Bug 1147297. Fix assert vsync adjustment time on windows to be >=. r=jrmuizel

This commit is contained in:
Mason Chang 2015-03-26 15:41:49 -07:00
Родитель 033e56ac3a
Коммит 783db35924
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -2135,7 +2135,7 @@ public:
if (SUCCEEDED(hr)) { if (SUCCEEDED(hr)) {
QueryPerformanceCounter(&qpcNow); QueryPerformanceCounter(&qpcNow);
QPC_TIME adjust = qpcNow.QuadPart - vblankTime.qpcVBlank; QPC_TIME adjust = qpcNow.QuadPart - vblankTime.qpcVBlank;
MOZ_ASSERT(adjust > 0); MOZ_ASSERT(adjust >= 0);
uint64_t usAdjust = (adjust * microseconds) / frequency.QuadPart; uint64_t usAdjust = (adjust * microseconds) / frequency.QuadPart;
vsync -= TimeDuration::FromMicroseconds((double) usAdjust); vsync -= TimeDuration::FromMicroseconds((double) usAdjust);
} }