зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1147297. Fix assert vsync adjustment time on windows to be >=. r=jrmuizel
This commit is contained in:
Родитель
033e56ac3a
Коммит
783db35924
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче