onReportTimings static method
Implementation
static void onReportTimings(List<FrameTiming> timings) {
lastFrames.addAll(timings);
// 仅保留 25 帧
if (lastFrames.length > maxframes) {
lastFrames.removeRange(0, lastFrames.length - maxframes);
}
// 如果有原始帧回调函数,则执行
if (orginalCallback != null) {
orginalCallback(timings);
}
outputLogger.i("fps: $fps");
}