allowFirstFrameReport method

void allowFirstFrameReport ()

When called after deferFirstFrameReport: tell the framework to report the frame it is building as a "useful" first frame.

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

This is used by WidgetsApp to report the first frame.

Implementation

//
// TODO(ianh): This method should only be available in debug and profile modes.
void allowFirstFrameReport() {
  assert(_deferFirstFrameReportCount >= 1);
  _deferFirstFrameReportCount -= 1;
}