| 47 | } |
| 48 | |
| 49 | Shader 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 |
nothing calls this directly
no test coverage detected