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

Function resolveSVGDimension

snap_drawing/src/snap_drawing/cpp/Utils/SVGUtils.cpp:55–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55static int resolveSVGDimension(int preferredDimension, SkScalar intrinsicDimension) {
56 if (preferredDimension > 0) {
57 return preferredDimension;
58 }
59 return static_cast<int>(std::ceil(intrinsicDimension));
60}
61
62class ScopedBitmapLock {
63public:

Callers 1

rasterizeSVGFunction · 0.85

Calls 1

ceilFunction · 0.85

Tested by

no test coverage detected