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

Function valdiViewToLayer

valdi/src/valdi/snap_drawing/Utils/ValdiUtils.cpp:31–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31Valdi::Ref<Layer> valdiViewToLayer(const Valdi::Ref<Valdi::View>& view) {
32 auto holder = Valdi::castOrNull<SnapDrawingLayerHolder>(view);
33 if (holder == nullptr) {
34 return nullptr;
35 }
36 return holder->get();
37}
38
39Color snapDrawingColorFromValdiColor(int64_t color) {
40 auto valdiColor = Valdi::Color(color);

Callers 7

getBridgeLayerFunction · 0.85
toLayerFunction · 0.85
onViewApplyMethod · 0.85
onViewResetMethod · 0.85
drawFrameMethod · 0.85
drawFrameSyncMethod · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected