blob: 55d9a7ba76d88cb533e5123f8b2caa8bca858124 [file] [log] [blame] [view] [edit]
`SkCodec::Options` now contains `fMaxDecodeMemory`. If Skia detects or estimates it would use more
than that amount of memory (in aggregate) for decoding the image, it will return nullptr instead
of attempting to decode it. Failures in this way will result in returning the new
`SkCodec::Result::kOutOfMemory`.