Skip to content

Commit

Permalink
Make rasterFinishWallTime required (flutter#27142)
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik authored Jul 7, 2021
1 parent 44b04ec commit dd17c08
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/ui/platform_dispatcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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>[
Expand All @@ -1191,7 +1191,7 @@ class FrameTiming {
buildFinish,
rasterStart,
rasterFinish,
if (rasterFinishWallTime == -1) rasterFinish else rasterFinishWallTime,
rasterFinishWallTime,
frameNumber,
]);
}
Expand Down
1 change: 1 addition & 0 deletions lib/web_ui/lib/src/engine/profiler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ void frameTimingsOnRasterFinish() {
buildFinish: _buildFinishMicros,
rasterStart: _rasterStartMicros,
rasterFinish: _rasterFinishMicros,
rasterFinishWallTime: _rasterFinishMicros,
));
_vsyncStartMicros = -1;
_buildStartMicros = -1;
Expand Down
4 changes: 2 additions & 2 deletions lib/web_ui/lib/src/ui/platform_dispatcher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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>[
Expand All @@ -219,7 +219,7 @@ class FrameTiming {
buildFinish,
rasterStart,
rasterFinish,
if (rasterFinishWallTime == -1) rasterFinish else rasterFinishWallTime,
rasterFinishWallTime,
frameNumber,
]);
}
Expand Down

0 comments on commit dd17c08

Please sign in to comment.