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

Method run

snap_drawing/src/snap_drawing/cpp/Layers/VideoLayer.cpp:18–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16VideoPlaybackAnimation::~VideoPlaybackAnimation() = default;
17
18bool VideoPlaybackAnimation::run(Layer& /*layer*/, Duration /*delta*/) {
19 auto nextImage = _imageQueue->dequeue();
20 if (nextImage) {
21 _imageLayer->setImage(nextImage.value());
22 }
23 return false;
24}
25
26void VideoPlaybackAnimation::cancel(Layer& layer) {}
27

Callers 3

processAnimationsMethod · 0.45

Calls 3

dequeueMethod · 0.80
valueMethod · 0.65
setImageMethod · 0.45

Tested by

no test coverage detected