Skip to content

Commit

Permalink
fix logic error flutter#6137
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Oct 10, 2022
1 parent 6552e50 commit 4679973
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion shell/common/animator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ void Animator::Render(std::shared_ptr<flutter::LayerTree> layer_tree,
const fml::TimePoint now = fml::TimePoint::Now();
const fml::TimePoint placeholder_time = now;
const fml::TimePoint vsync_target_time =
std::max(fallback_vsync_target_time, now);
// negative means do not provide
fallback_vsync_target_time.ToEpochDelta().ToMicroseconds() < 0
? fallback_vsync_target_time
: now;
frame_timings_recorder_->RecordVsync(placeholder_time, vsync_target_time);
frame_timings_recorder_->RecordBuildStart(placeholder_time);

Expand Down

0 comments on commit 4679973

Please sign in to comment.