MCPcopy Create free account
hub / github.com/Snapchat/Valdi / finish

Method finish

snap_drawing/src/snap_drawing/cpp/Animations/Animation.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void Animation::finish(Layer& layer, bool didComplete) {
51 auto applier = std::move(_applier);
52 _applier = nullptr;
53 if (applier) {
54 applier(layer, 1.0);
55 }
56
57 auto completions = std::move(_completions);
58 for (const auto& completion : completions) {
59 completion(didComplete);
60 }
61}
62
63void Animation::addCompletion(AnimationCompletion&& completion) {
64 _completions.emplace_back(std::move(completion));

Callers 6

clipImageToCircleFunction · 0.45
drawMethod · 0.45
makeRectangleFunction · 0.45
drawContentMethod · 0.45
drawBackgroundMethod · 0.45
drawForegroundMethod · 0.45

Calls

no outgoing calls

Tested by 2

drawMethod · 0.36
makeRectangleFunction · 0.36