mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Make rasterFinishWallTime required (flutter/engine#27142)
This commit is contained in:
parent
6444833e2d
commit
1e86cd92e2
@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
@ -198,6 +198,7 @@ void frameTimingsOnRasterFinish() {
|
||||
buildFinish: _buildFinishMicros,
|
||||
rasterStart: _rasterStartMicros,
|
||||
rasterFinish: _rasterFinishMicros,
|
||||
rasterFinishWallTime: _rasterFinishMicros,
|
||||
));
|
||||
_vsyncStartMicros = -1;
|
||||
_buildStartMicros = -1;
|
||||
|
||||
@ -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,
|
||||
]);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user