Bug 1298254 - Ensure that the flush-apz-repaints codepath also waits for pending SetTargetAPZCNotification messages on the controller thread before returning. r=dvander

MozReview-Commit-ID: 5bY3TeJB4KN

--HG--
extra : rebase_source : 053dbbe4ac9f6e36bdb3b113eac44c7df29ba5c9
This commit is contained in:
Kartikaya Gupta 2016-09-23 17:14:00 -04:00
Родитель ed0b5f06ee
Коммит a728fc2ac0
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -1660,7 +1660,9 @@ CompositorBridgeParent::FlushApzRepaints(const LayerTransactionParent* aLayerTre
// use the compositor's root layer tree id.
layersId = mRootLayerTreeID;
}
mApzcTreeManager->FlushApzRepaints(layersId);
APZThreadUtils::RunOnControllerThread(NS_NewRunnableFunction([=] () {
mApzcTreeManager->FlushApzRepaints(layersId);
}));
}
void