onGpuTimings method

  1. @override
void onGpuTimings(
  1. void listener(
    1. GpuFrameTimings timings
    )?
)

Sets where each frame's GPU timings go, a frame or two after it was encoded; null stops them. Never called on a device whose supportsGpuTimestamps is false.

Implementation

@override
void onGpuTimings(void Function(GpuFrameTimings timings)? listener) =>
    _timingListener = supportsGpuTimestamps ? listener : null;