mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 04:27:37 +00:00
Bug 1121713 - [e10s] CompositorParent should clear itself out of LayerTreeState when destroyed (r=nical)
This commit is contained in:
parent
3337f70861
commit
1ed4ec4492
@ -481,6 +481,7 @@ CompositorParent::RecvWillStop()
|
||||
if (lts->mParent == this) {
|
||||
mLayerManager->ClearCachedResources(lts->mRoot);
|
||||
lts->mLayerManager = nullptr;
|
||||
lts->mParent = nullptr;
|
||||
}
|
||||
}
|
||||
mLayerManager->Destroy();
|
||||
@ -1709,7 +1710,9 @@ CrossProcessCompositorParent::ForceComposite(LayerTransactionParent* aLayerTree)
|
||||
MonitorAutoLock lock(*sIndirectLayerTreesLock);
|
||||
parent = sIndirectLayerTrees[id].mParent;
|
||||
}
|
||||
parent->ForceComposite(aLayerTree);
|
||||
if (parent) {
|
||||
parent->ForceComposite(aLayerTree);
|
||||
}
|
||||
}
|
||||
|
||||
bool
|
||||
|
Loading…
Reference in New Issue
Block a user