beginFrame method
Starts a frame — each view drawn is one. Call before recording it.
Earlier frames' frameData stays as it was until the GPU has finished the command lists recorded with it, so frames may be recorded faster than the GPU runs them.
Implementation
@override
void beginFrame() {
frameBytes = 0;
log.add('beginFrame');
}