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

Function toBitmapInfo

snap_drawing/src/snap_drawing/cpp/Utils/BitmapUtils.cpp:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47Valdi::BitmapInfo toBitmapInfo(const SkImageInfo& info) {
48 auto colorType = toValdiColorType(info.colorType());
49 auto alphaType = toValdiAlphaType(info.alphaType());
50 auto rowByteSize = info.minRowBytes();
51
52 return Valdi::BitmapInfo(info.width(), info.height(), colorType, alphaType, rowByteSize);
53}
54
55SkColorType toSkiaColorType(Valdi::ColorType colorType) {
56 switch (colorType) {

Callers 1

getInfoMethod · 0.85

Calls 5

toValdiColorTypeFunction · 0.85
toValdiAlphaTypeFunction · 0.85
BitmapInfoClass · 0.50
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected