22 *
this = std::move(other);
26 this->fStorage = other.fStorage;
29 other.fStorage =
nullptr;
30 other.INHERITED::reset();
52 if (
nullptr == pixels) {
55 this->
reset(info, pixels, rb);
69 void* data = fStorage;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
#define SkASSERT_RELEASE(cond)
static void * sk_malloc_canfail(size_t size)
static size_t AllocSize(const SkImageInfo &info, size_t *rowBytes)
bool tryAlloc(const SkImageInfo &)
void alloc(const SkImageInfo &)
SkAutoPixmapStorage & operator=(SkAutoPixmapStorage &&other)
sk_sp< SkData > detachPixelsAsData()
static sk_sp< SkData > MakeFromMalloc(const void *data, size_t length)
const SkImageInfo & info() const
size_t computeByteSize() const
static bool ByteSizeOverflowed(size_t byteSize)
size_t minRowBytes() const
size_t computeByteSize(size_t rowBytes) const