зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1154614 - Don't try to pick up the same non-reentrant lock twice. r=dvander a=RyanVM
This commit is contained in:
Родитель
5d36f17a50
Коммит
aec78d5467
|
@ -2042,16 +2042,13 @@ CrossProcessCompositorParent::SetConfirmedTargetAPZC(const LayerTransactionParen
|
|||
{
|
||||
uint64_t id = aLayerTree->GetId();
|
||||
MOZ_ASSERT(id != 0);
|
||||
CompositorParent* parent = nullptr;
|
||||
{
|
||||
MonitorAutoLock lock(*sIndirectLayerTreesLock);
|
||||
const CompositorParent::LayerTreeState* state = CompositorParent::GetIndirectShadowTree(id);
|
||||
if (!state || !state->mParent) {
|
||||
return;
|
||||
}
|
||||
parent = state->mParent;
|
||||
const CompositorParent::LayerTreeState* state = CompositorParent::GetIndirectShadowTree(id);
|
||||
if (!state) {
|
||||
return;
|
||||
}
|
||||
parent->SetConfirmedTargetAPZC(aLayerTree, aInputBlockId, aTargets);
|
||||
|
||||
MOZ_ASSERT(state->mParent);
|
||||
state->mParent->SetConfirmedTargetAPZC(aLayerTree, aInputBlockId, aTargets);
|
||||
}
|
||||
|
||||
AsyncCompositionManager*
|
||||
|
|
Загрузка…
Ссылка в новой задаче