Reland "Reland "Reland "Return actual byte count and ptr from sk_allocate_*"""
This is a reland of commit 2682665eeda8d10fee6619797e327cbb8f9e0f45
Add guard to only compile malloc_usable_size for Android API >= 17.
For Mac, guard against malloc_size returning 0. Move the assertion
into the remaining branches.
Original change's description:
> Reland "Reland "Return actual byte count and ptr from sk_allocate_*""
>
> This is a reland of commit 7bcea08be30acdae70043e48e1d25cb149ba13ee
>
> Added missing IWYU headers.
>
> Original change's description:
> > Reland "Return actual byte count and ptr from sk_allocate_*"
> >
> > This is a reland of commit b4c712f47365e8a4bc62de2701b00d16d88f8a21
> >
> > Original change's description:
> > > Return actual byte count and ptr from sk_allocate_*
> > >
> > > Implement a system to return the actual number of bytes that are
> > > backing a pointer. Update SkTArray to take advantage of the new
> > > calls.
> > >
> > > Change-Id: Ibfb5cfc27acf60522d5db6a73e048e9aede5175e
> > > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/593957
> > > Reviewed-by: John Stiles <johnstiles@google.com>
> > > Commit-Queue: Herb Derby <herb@google.com>
> >
> > Change-Id: Ie4483d9a8a076e0c7de3ff17b995737e7947eeec
> > Reviewed-on: https://skia-review.googlesource.com/c/skia/+/597558
> > Reviewed-by: John Stiles <johnstiles@google.com>
> > Commit-Queue: Herb Derby <herb@google.com>
>
> Change-Id: I8d7be7fa73a6593f1047ae213a32cb05e20f58d3
> Reviewed-on: https://skia-review.googlesource.com/c/skia/+/598036
> Reviewed-by: John Stiles <johnstiles@google.com>
> Commit-Queue: Herb Derby <herb@google.com>
Change-Id: I0e20bc7dc5b1af6aec07c30e014748bb2ed76d26
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/598561
Reviewed-by: John Stiles <johnstiles@google.com>
Commit-Queue: Herb Derby <herb@google.com>
14 files changed