зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1283019. Only post a schedule composite if the compositor loop exists. r=dvander
This commit is contained in:
Родитель
b339d21385
Коммит
fbdd07f3b5
|
@ -356,7 +356,7 @@ CompositorVsyncScheduler::PostCompositeTask(TimeStamp aCompositeTimestamp)
|
|||
{
|
||||
// can be called from the compositor or vsync thread
|
||||
MonitorAutoLock lock(mCurrentCompositeTaskMonitor);
|
||||
if (mCurrentCompositeTask == nullptr) {
|
||||
if (mCurrentCompositeTask == nullptr && CompositorThreadHolder::Loop()) {
|
||||
RefPtr<CancelableRunnable> task =
|
||||
NewCancelableRunnableMethod<TimeStamp>(this, &CompositorVsyncScheduler::Composite,
|
||||
aCompositeTimestamp);
|
||||
|
|
Загрузка…
Ссылка в новой задаче