-
- All Implemented Interfaces:
-
com.facebook.react.fabric.mounting.mountitems.MountItem
public class IntBufferBatchMountItem implements MountItem
This class represents a batch of MountItems, represented directly as int buffers to remove the need for actual MountItem instances.
An IntBufferBatchMountItem batch contains an array of ints, indicating the mount actions that should be taken, and a size; as well as an array of Objects, and a corresponding array size, for any data that cannot be passed as a raw int.
The purpose of encapsulating the array of MountItems this way, is to reduce the amount of allocations in C++ and JNI round-trips.
-
-
Constructor Summary
Constructors Constructor Description IntBufferBatchMountItem(int surfaceId, Array<int> intBuf, Array<Object> objBuf, int commitNumber)
-
Method Summary
Modifier and Type Method Description void
execute(@NonNull() MountingManager mountingManager)
Execute this MountItem into the operation queue received by parameter. int
getSurfaceId()
boolean
shouldSchedule()
String
toString()
-
-
Method Detail
-
execute
void execute(@NonNull() MountingManager mountingManager)
Execute this MountItem into the operation queue received by parameter.
-
getSurfaceId
int getSurfaceId()
-
shouldSchedule
boolean shouldSchedule()
-
-
-
-