MCPcopy Create free account
hub / github.com/FastLED/FastLED / onQueuingStart

Method onQueuingStart

src/fl/gfx/rectangular_draw_buffer.cpp.hpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32bool RectangularDrawBuffer::onQueuingStart() {
33 if (mQueueState == QUEUEING) {
34 return false;
35 }
36 mQueueState = QUEUEING;
37 mPinToLedSegment.clear();
38 mDrawList.swap(mPrevDrawList);
39 mDrawList.clear();
40 if (mAllLedsBufferUint8Size > 0) {
41 fl::memset(mAllLedsBufferUint8.get(), 0, mAllLedsBufferUint8Size);
42 }
43 return true;
44}
45
46void RectangularDrawBuffer::queue(const DrawItem &item) {
47 mDrawList.push_back(item);

Callers 1

FL_TEST_FILEFunction · 0.45

Calls 4

memsetFunction · 0.85
clearMethod · 0.45
swapMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected