shouldUseFastSnapshotFirstFrame function
bool
shouldUseFastSnapshotFirstFrame(
{ - required bool fromRenderHistory,
- required bool didResetAfterInitialHistorySync,
- required bool hasBoardController,
- required bool hasSnapshotData,
})
Implementation
@visibleForTesting
bool shouldUseFastSnapshotFirstFrame({
required bool fromRenderHistory,
required bool didResetAfterInitialHistorySync,
required bool hasBoardController,
required bool hasSnapshotData,
}) {
return _kFastSnapshotFirstFrameEnabled &&
!fromRenderHistory &&
!didResetAfterInitialHistorySync &&
hasBoardController &&
hasSnapshotData;
}