48 paint.setBlender(std::move(blender));
54 s->getCanvas()->drawPaint(
paint);
61 SkString shaderText{
reinterpret_cast<const char*
>(data), size};
67 options.forceUnoptimized =
false;
73#if defined(SK_BUILD_FOR_LIBFUZZER)
void FuzzCreateValidInputsForRuntimeEffect(SkRuntimeEffect *effect, sk_sp< SkData > &uniformBytes, TArray< SkRuntimeEffect::ChildPtr > &children)
static bool FuzzSkRuntimeBlender_Once(const SkString &shaderText, const SkRuntimeEffect::Options &options)
bool FuzzSkRuntimeBlender(const uint8_t *data, size_t size)
constexpr SkColor SK_ColorRED
sk_sp< SkBlender > makeBlender(sk_sp< const SkData > uniforms, SkSpan< const ChildPtr > children={}) const
static Result MakeForBlender(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)