We explicitly use the same allocator for our pixels that SkMask does, so that we can freely assign me...
Definition: SkMallocPixelRef.h:20
SK_API sk_sp< SkPixelRef > MakeWithData(const SkImageInfo &, size_t rowBytes, sk_sp< SkData > data)
Return a new SkMallocPixelRef that will use the provided SkData and rowBytes as pixel storage.
SK_API sk_sp< SkPixelRef > MakeAllocate(const SkImageInfo &, size_t rowBytes)
Return a new SkMallocPixelRef, automatically allocating storage for the pixels.