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

Method drawFrames

snap_drawing/src/snap_drawing/cpp/Drawing/DrawLooper.cpp:302–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302void DrawLooper::drawFrames(TimePoint /*time*/) {
303 auto drawLock = getDrawLock();
304 auto drawOperations = collectDrawOperations();
305 drawOperationsBatch(drawOperations);
306 performCleanup(DrawLooper::CleanUpMode::PostDraw);
307
308 auto entriesLock = getEntriesLock();
309 _drawScheduled = false;
310
311 for (const auto& it : _entries) {
312 if (it->getDrawState().needsDraw) {
313 scheduleDraw(entriesLock);
314 return;
315 }
316 }
317}
318
319void DrawLooper::processFrames(TimePoint time) {
320 _processingFrames = true;

Callers 1

onFrameMethod · 0.80

Calls 1

getDrawStateMethod · 0.80

Tested by

no test coverage detected