зеркало из https://github.com/mozilla/gecko-dev.git
Bug 995065 - Don't block on the Compositor for more than 100ms. r=jgilbert
This commit is contained in:
Родитель
9ce6bcda53
Коммит
6b353b77a8
|
@ -476,8 +476,11 @@ SurfaceStream_TripleBuffer_Async::WaitForCompositor()
|
|||
PROFILER_LABEL("SurfaceStream_TripleBuffer_Async", "WaitForCompositor");
|
||||
|
||||
// We are assumed to be locked
|
||||
while (mStaging)
|
||||
mMonitor.Wait();
|
||||
while (mStaging) {
|
||||
if (!NS_SUCCEEDED(mMonitor.Wait(PR_MillisecondsToInterval(100)))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче