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
parent 0f1b29df7e
commit f225a42d33

View File

@ -1316,8 +1316,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);
}));
}