File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 22// Use of this source code is governed by a BSD-style license that can be
33// found in the LICENSE file.
44
5- #include < future>
65#define FML_USED_ON_EMBEDDER
76
87#include " flutter/shell/common/shell_test.h"
@@ -159,8 +158,10 @@ void ShellTest::PumpOneFrame(Shell* shell,
159158 shell->GetTaskRunners ().GetUITaskRunner ()->PostTask (
160159 [&latch, engine = shell->weak_engine_ , viewport_metrics]() {
161160 engine->SetViewportMetrics (std::move (viewport_metrics));
162- engine->animator_ ->BeginFrame (fml::TimePoint::Now (),
163- fml::TimePoint::Now ());
161+ const auto frame_begin_time = fml::TimePoint::Now ();
162+ const auto frame_end_time =
163+ frame_begin_time + fml::TimeDelta::FromSecondsF (1.0 / 60.0 );
164+ engine->animator_ ->BeginFrame (frame_begin_time, frame_end_time);
164165 latch.Signal ();
165166 });
166167 latch.Wait ();
You can’t perform that action at this time.
0 commit comments