Remove use of CADisplayLink targetTimestamp, which was only added in iOS 10.0. (flutter/engine#4108)

This commit is contained in:
Ryan Macnak
2017-09-14 10:48:28 -07:00
committed by GitHub
parent bb21c7cde6
commit f2629475aa

View File

@@ -47,10 +47,8 @@
}
- (void)onDisplayLink:(CADisplayLink*)link {
// fxl::TimePoint and CATimeInterval both use mach_absolute_time.
fxl::TimePoint frame_start_time = fxl::TimePoint::Now();
fxl::TimePoint frame_target_time =
fxl::TimePoint::FromEpochDelta(fxl::TimeDelta::FromSecondsF(link.targetTimestamp));
fxl::TimePoint frame_target_time = frame_start_time + fxl::TimeDelta::FromSecondsF(link.duration);
_displayLink.paused = YES;