SkMallocPixelRef::~SkMallocPixelRef() { if (fReleaseProc != nullptr) { fReleaseProc(this->pixels(), fReleaseProcContext); } }
SkData::~SkData() { if (fReleaseProc) { fReleaseProc(fPtr, fSize, fReleaseProcContext); } }
SkMallocPixelRef::~SkMallocPixelRef() { SkSafeUnref(fCTable); if (fReleaseProc != NULL) { fReleaseProc(fStorage, fReleaseProcContext); } }