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

Function pointsToPackedPixels

valdi/src/valdi/runtime/Views/Measure.cpp:51–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51int64_t pointsToPackedPixels(float horizontal, float vertical, float pointScale) {
52 auto horizontalP = pointsToPixels(horizontal, pointScale);
53 auto verticalP = pointsToPixels(vertical, pointScale);
54 return packIntPair(horizontalP, verticalP);
55}
56
57CoordinateResolver::CoordinateResolver(float pointScale) : _pointScale(pointScale) {}
58

Callers 5

TESTFunction · 0.85
getViewNodePointMethod · 0.85
getViewNodeSizeMethod · 0.85
measureLayoutMethod · 0.85

Calls 2

pointsToPixelsFunction · 0.85
packIntPairFunction · 0.85

Tested by 1

TESTFunction · 0.68