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

Method makeImage

snap_drawing/src/snap_drawing/cpp/Drawing/Shader.cpp:49–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49Shader Shader::makeImage(const Ref<Image>& image, const Matrix* localMatrix, FilterQuality filterQuality) {
50 auto samplingOptions = makeSmaplingOptions(filterQuality);
51 const auto* skMatrix = localMatrix != nullptr ? &localMatrix->getSkValue() : nullptr;
52 return Shader(image->getSkValue()->makeShader(SkTileMode::kClamp, SkTileMode::kClamp, samplingOptions, skMatrix));
53}
54
55} // namespace snap::drawing

Callers

nothing calls this directly

Calls 3

makeSmaplingOptionsFunction · 0.85
getSkValueMethod · 0.80
ShaderClass · 0.70

Tested by

no test coverage detected