MCPcopy Create free account
hub / github.com/Tencent/libpag / cancelAnimation

Method cancelAnimation

src/rendering/PAGAnimator.cpp:344–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344void PAGAnimator::cancelAnimation() {
345 if (!isAnimating) {
346 return;
347 }
348 isAnimating = false;
349 AnimationTicker::GetInstance()->removeAnimator(weakThis.lock());
350}
351
352void PAGAnimator::resetStartTime() {
353 _startTime = INT64_MIN;

Callers 1

onFrameAvailableMethod · 0.80

Calls 1

removeAnimatorMethod · 0.80

Tested by

no test coverage detected