◆ getDisplayLink [1/2]
- (CADisplayLink *) getDisplayLink |
|
|
|
◆ getDisplayLink [2/2]
- (CADisplayLink *) getDisplayLink |
|
|
|
◆ onDisplayLink:
- (void) onDisplayLink: |
|
(CADisplayLink *) |
link |
|
Extends class VSyncClient.
Definition at line 66 of file vsync_waiter_ios.mm.
114 :(CADisplayLink*)
link {
115 CFTimeInterval delay = CACurrentMediaTime() -
link.timestamp;
117
120
124
125 std::unique_ptr<flutter::FrameTimingsRecorder> recorder =
126 std::make_unique<flutter::FrameTimingsRecorder>();
127
128 _refreshRate =
round(1 / (frame_target_time - frame_start_time).ToSecondsF());
129
130 recorder->RecordVsync(frame_start_time, frame_target_time);
131 if (_allowPauseAfterVsync) {
133 }
134 _callback(std::move(recorder));
135}
static void round(SkPoint *p)
constexpr int64_t ToMicroseconds() const
TimeDelta ToEpochDelta() const
def link(from_root, to_root)
#define TRACE_EVENT2_INT(category_group, name, arg1_name, arg1_val, arg2_name, arg2_val)
The documentation for this category was generated from the following files: