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

Function toSkiaImageInfo

snap_drawing/src/snap_drawing/cpp/Utils/BitmapUtils.cpp:89–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89SkImageInfo toSkiaImageInfo(const Valdi::BitmapInfo& info) {
90 auto colorType = toSkiaColorType(info.colorType);
91 auto alphaType = toSkiaAlphaType(info.alphaType);
92
93 return SkImageInfo::Make(info.width, info.height, colorType, alphaType);
94}
95
96static void releaseBitmap(const void* /*ptr*/, void* context) {
97 auto bitmap = Valdi::unsafeBridge<Valdi::IBitmap>(context);

Callers 5

makeMethod · 0.85
drawMethod · 0.85
makeFromPixelsDataMethod · 0.85
rasterizeSVGFunction · 0.85
BitmapDrawableSurfaceMethod · 0.85

Calls 3

toSkiaColorTypeFunction · 0.85
toSkiaAlphaTypeFunction · 0.85
MakeFunction · 0.85

Tested by

no test coverage detected