47 paint.setShader(std::move(shader));
53 s->getCanvas()->drawPaint(
paint);
60 SkString shaderText{
reinterpret_cast<const char*
>(data), size};
66 options.forceUnoptimized =
false;
72#if defined(SK_BUILD_FOR_LIBFUZZER)
void FuzzCreateValidInputsForRuntimeEffect(SkRuntimeEffect *effect, sk_sp< SkData > &uniformBytes, TArray< SkRuntimeEffect::ChildPtr > &children)
static bool FuzzSkRuntimeEffect_Once(const SkString &shaderText, const SkRuntimeEffect::Options &options)
bool FuzzSkRuntimeEffect(const uint8_t *data, size_t size)
sk_sp< SkShader > makeShader(sk_sp< const SkData > uniforms, sk_sp< SkShader > children[], size_t childCount, const SkMatrix *localMatrix=nullptr) const
static Result MakeForShader(SkString sksl, const Options &)
int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static SkImageInfo MakeN32Premul(int width, int height)