Bug 1121713 - [e10s] CompositorParent should clear itself out of LayerTreeState when destroyed (r=nical)

This commit is contained in:
Bill McCloskey 2015-01-16 10:06:11 -08:00
parent ee8071c5fb
commit 0c3c75cea4

View File

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