mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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(
|
||||
|
||||
Reference in New Issue
Block a user