allowFirstFrame method

  1. @override
void allowFirstFrame()
override

Called after deferFirstFrame to tell the framework that it is ok to send the first frame to the engine now.

For best performance, this method should only be called while the schedulerPhase is SchedulerPhase.idle.

This method may only be called once for each corresponding call to deferFirstFrame.

Implementation

@override
void allowFirstFrame() {
  assert(_firstFrameDeferredCount > 0);
  _firstFrameDeferredCount -= 1;
  // Unlike in RendererBinding.allowFirstFrame we do not force a frame here
  // to give the test full control over frame scheduling.
}