16 if (
nullptr == codec) {
20 if (
nullptr == aImg) {
31 while (!aImg->isFinished() && escape < 100) {
32 aImg->draw(
s->getCanvas());
34 aImg->decodeNextFrame();
39#if defined(SK_BUILD_FOR_LIBFUZZER)
bool FuzzAnimatedImage(const uint8_t *data, size_t size)
static std::unique_ptr< SkAndroidCodec > MakeFromStream(std::unique_ptr< SkStream >, SkPngChunkReader *=nullptr)
static sk_sp< SkAnimatedImage > Make(std::unique_ptr< SkAndroidCodec >, const SkImageInfo &info, SkIRect cropRect, sk_sp< SkPicture > postProcess)
static std::unique_ptr< SkMemoryStream > MakeDirect(const void *data, size_t length)
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)