| 30 | } |
| 31 | |
| 32 | bool 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 | |
| 46 | void RectangularDrawBuffer::queue(const DrawItem &item) { |
| 47 | mDrawList.push_back(item); |
no test coverage detected