From 2820d0e722c3bc412b158bd09573ea4f6d3fd07b Mon Sep 17 00:00:00 2001 From: Carlo Bernaschina Date: Fri, 15 Sep 2017 09:59:53 -0700 Subject: [PATCH] Fix engine on iOS (#4113) Related https://github.com/flutter/engine/pull/4105 --- .../platform/darwin/ios/framework/Source/vsync_waiter_ios.mm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shell/platform/darwin/ios/framework/Source/vsync_waiter_ios.mm b/shell/platform/darwin/ios/framework/Source/vsync_waiter_ios.mm index 922674512ae..78d66781891 100644 --- a/shell/platform/darwin/ios/framework/Source/vsync_waiter_ios.mm +++ b/shell/platform/darwin/ios/framework/Source/vsync_waiter_ios.mm @@ -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