Bug 1283019. Only post a schedule composite if the compositor loop exists. r=dvander

This commit is contained in:
Mason Chang 2016-07-07 17:52:58 -07:00
Родитель b339d21385
Коммит fbdd07f3b5
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -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);