MCPcopy Create free account
hub / github.com/Tencent/tgfx / VSyncCallback

Method VSyncCallback

ohos/hello2d/src/main/cpp/DisplayLink.cpp:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23void DisplayLink::VSyncCallback(long long, void* data) {
24 auto displayLink = static_cast<DisplayLink*>(data);
25 if (displayLink->playing) {
26 displayLink->callback();
27 OH_NativeVSync_RequestFrame(displayLink->vSync, &DisplayLink::VSyncCallback, displayLink);
28 }
29}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected