mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fix engine on iOS (#4113)
Related https://github.com/flutter/engine/pull/4105
This commit is contained in:
parent
550d0c6490
commit
2820d0e722
@ -60,9 +60,10 @@
|
||||
TRACE_EVENT1("flutter", "VSYNC", "mode", "basic");
|
||||
#else
|
||||
{
|
||||
constexpr size_t num_chars = sizeof(fxl::TimePoint) * CHAR_BIT * 3.4 + 2;
|
||||
fxl::TimeDelta delta = frame_target_time.ToEpochDelta();
|
||||
constexpr size_t num_chars = sizeof(int64_t) * CHAR_BIT * 3.4 + 2;
|
||||
char deadline[num_chars];
|
||||
sprintf(deadline, "%lld", frame_target_time / 1000); // microseconds
|
||||
sprintf(deadline, "%lld", delta.ToMicroseconds());
|
||||
TRACE_EVENT2("flutter", "VSYNC", "mode", "basic", "deadline", deadline);
|
||||
}
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user