зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1175521 - Posting to a dead loop. r=nical
This commit is contained in:
Родитель
a0b8e5cf08
Коммит
bf20a99244
|
@ -1550,7 +1550,10 @@ CompositorParent::DeallocateLayerTreeId(uint64_t aId)
|
|||
// Here main thread notifies compositor to remove an element from
|
||||
// sIndirectLayerTrees. This removed element might be queried soon.
|
||||
// Checking the elements of sIndirectLayerTrees exist or not before using.
|
||||
MOZ_ASSERT(CompositorLoop());
|
||||
if (!CompositorLoop()) {
|
||||
gfxCriticalError() << "Attempting to post to a invalid Compositor Loop";
|
||||
return;
|
||||
}
|
||||
CompositorLoop()->PostTask(FROM_HERE,
|
||||
NewRunnableFunction(&EraseLayerState, aId));
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче