Bug 1375349 - Add calling ScheduleComposition() in CompositorBridgeParent::RecvAdoptChild() r=mattwoodrow

This commit is contained in:
sotaro 2017-06-27 14:56:16 -07:00
Родитель a7d3b243a3
Коммит 5120a89df4
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -1647,6 +1647,9 @@ CompositorBridgeParent::RecvAdoptChild(const uint64_t& child)
NotifyChildCreated(child);
if (sIndirectLayerTrees[child].mLayerTree) {
sIndirectLayerTrees[child].mLayerTree->SetLayerManager(mLayerManager);
// Trigger composition to handle a case that mLayerTree was not composited yet
// by previous CompositorBridgeParent, since nsRefreshDriver might wait composition complete.
ScheduleComposition();
}
parent = sIndirectLayerTrees[child].mApzcTreeManagerParent;
}