MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuSVGImageSync

Function PiuSVGImageSync

modules/piu/Pebble/piuSVGImage.c:322–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322void PiuSVGImageSync(void* it)
323{
324 PiuSVGImage* self = it;
325 if ((*self)->dcs) {
326 double time = PiuContentUseIdle(it)->time;
327 GDrawCommandFrame *dcf = gdraw_command_sequence_get_frame_by_elapsed((*self)->dcs, time);
328 if ((*self)->dcf != dcf) {
329 (*self)->dcf = dcf;
330 (*self)->transforming = 1;
331 PiuSVGImageInvalidate(self, NULL);
332 }
333 }
334}
335
336void PiuSVGImageUnbind(void* it, PiuApplication* application, PiuView* view)
337{

Callers

nothing calls this directly

Calls 2

PiuContentUseIdleFunction · 0.85
PiuSVGImageInvalidateFunction · 0.85

Tested by

no test coverage detected