Bug 1336510 - Part 3: Capture a strong reference to this in CompositorBridgeParent::FlushApzRepaints, r=kats

MozReview-Commit-ID: KdGBYEAC0dW
This commit is contained in:
Michael Layzell 2017-02-03 16:56:24 -05:00
Родитель d917cc7587
Коммит e21226f317
1 изменённых файлов: 2 добавлений и 1 удалений

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

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