beginFrame method
Opens a frame. Called by the scene at the start of renderViews.
Implementation
RenderFrameStats beginFrame() {
final frame = RenderFrameStats(
frameIndex: _frameCount,
timestampMicros: DateTime.now().microsecondsSinceEpoch,
);
_active = frame;
_frameStart.copyFrom(activeRenderCounters);
_frameWatch
..reset()
..start();
return frame;
}