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

Method setPixelsRow

snap_drawing/test/utils/TestBitmap.cpp:44–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void TestBitmap::setPixelsRow(int y, const Color* pixels) {
45 auto* ptr = getPixelPtr(0, y);
46
47 std::memcpy(ptr, pixels, static_cast<size_t>(_width) * sizeof(Color));
48}
49
50void TestBitmap::setOnLockCallback(Valdi::Function<void()>&& onLock) {
51 _onLock = std::move(onLock);

Callers 1

TestBitmap.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected