Make rasterFinishWallTime required (flutter/engine#27142)

This commit is contained in:
Kaushik Iska 2021-07-07 11:51:02 -04:00 committed by GitHub
parent 6444833e2d
commit 1e86cd92e2
3 changed files with 5 additions and 4 deletions

View File

@ -1182,7 +1182,7 @@ class FrameTiming {
required int buildFinish,
required int rasterStart,
required int rasterFinish,
int rasterFinishWallTime = -1,
required int rasterFinishWallTime,
int frameNumber = -1,
}) {
return FrameTiming._(<int>[
@ -1191,7 +1191,7 @@ class FrameTiming {
buildFinish,
rasterStart,
rasterFinish,
if (rasterFinishWallTime == -1) rasterFinish else rasterFinishWallTime,
rasterFinishWallTime,
frameNumber,
]);
}

View File

@ -198,6 +198,7 @@ void frameTimingsOnRasterFinish() {
buildFinish: _buildFinishMicros,
rasterStart: _rasterStartMicros,
rasterFinish: _rasterFinishMicros,
rasterFinishWallTime: _rasterFinishMicros,
));
_vsyncStartMicros = -1;
_buildStartMicros = -1;

View File

@ -210,7 +210,7 @@ class FrameTiming {
required int buildFinish,
required int rasterStart,
required int rasterFinish,
int rasterFinishWallTime = -1,
required int rasterFinishWallTime,
int frameNumber = 1,
}) {
return FrameTiming._(<int>[
@ -219,7 +219,7 @@ class FrameTiming {
buildFinish,
rasterStart,
rasterFinish,
if (rasterFinishWallTime == -1) rasterFinish else rasterFinishWallTime,
rasterFinishWallTime,
frameNumber,
]);
}