MCPcopy Create free account
hub / github.com/antvis/F2Native / frameLoop

Method frameLoop

core/graphics/animate/TimeLine.cpp:18–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18void animate::TimeLine::frameLoop() {
19 if(this->playing_ == false)
20 return;
21
22 func::Command *cmd = func::CreateCommand([this]() -> void {
23 if(playing_ == false)
24 return;
25 this->OnUpdate();
26 this->frameLoop();
27 });
28
29 chart_->RequestAnimationFrame(cmd);
30}
31
32void animate::TimeLine::Stop() { this->playing_ = false; }
33

Callers 1

PlayMethod · 0.95

Calls 3

OnUpdateMethod · 0.95
CreateCommandFunction · 0.85
RequestAnimationFrameMethod · 0.80

Tested by

no test coverage detected