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

Method getInfo

snap_drawing/src/snap_drawing/cpp/Utils/Bitmap.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13Bitmap::Bitmap(SkBitmap&& bitmap) : _bitmap(std::move(bitmap)) {}
14
15Valdi::BitmapInfo Bitmap::getInfo() const {
16 const auto& pixmap = _bitmap.pixmap();
17 return toBitmapInfo(pixmap.info());
18}
19
20void* Bitmap::lockBytes() {
21 const auto& pixmap = _bitmap.pixmap();

Callers

nothing calls this directly

Calls 2

toBitmapInfoFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected