Clean up unnecessary lambda function for preallocate after D40403682

Summary: `dispatchPreallocationInBackground_` is removed and we don't need to use the lambda function anymore.

Reviewed By: javache

Differential Revision: D41574447

fbshipit-source-id: 9c2b8a067fb86b75320b338e3f8c7989315f9b8b
This commit is contained in:
Xin Chen
2022-11-30 14:24:34 -08:00
committed by Facebook GitHub Bot
parent 3c5a8290ae
commit 0569f6500e
@@ -528,18 +528,12 @@ void Binding::preallocateView(
}
auto shadowView = ShadowView(shadowNode);
auto preallocationFunction = [this,
surfaceId,
shadowView = std::move(shadowView)] {
auto mountingManager = verifyMountingManager("Binding::preallocateView");
if (!mountingManager) {
return;
}
auto mountingManager = verifyMountingManager("Binding::preallocateView");
if (!mountingManager) {
return;
}
mountingManager->preallocateShadowView(surfaceId, shadowView);
};
preallocationFunction();
mountingManager->preallocateShadowView(surfaceId, shadowView);
}
void Binding::schedulerDidDispatchCommand(