Home
last modified time | relevance | path

Searched refs:sk_malloc_canfail (Results 1 – 20 of 20) sorted by relevance

/external/skqp/src/core/
DSkMallocPixelRef.cpp26 void* sk_malloc_canfail(size_t count, size_t elemSize) { in sk_malloc_canfail() function
27 return sk_malloc_canfail(SkSafeMath::Mul(count, elemSize)); in sk_malloc_canfail()
86 return MakeUsing(sk_malloc_canfail, info, rowBytes); in MakeAllocate()
DSkAutoPixmapStorage.cpp43 void* pixels = sk_malloc_canfail(size); in tryAlloc()
DSkBitmapCache.cpp195 block = sk_malloc_canfail(size); in Alloc()
DSkRegion_path.cpp151 fStorage = (SkRegion::RunType*)sk_malloc_canfail(fStorageCount, sizeof(SkRegion::RunType)); in init()
DSkPathRef.cpp68 void* newAlloc = sk_malloc_canfail(minSize); in shrinkToFit()
/external/skia/src/core/
DSkMallocPixelRef.cpp26 void* sk_malloc_canfail(size_t count, size_t elemSize) { in sk_malloc_canfail() function
27 return sk_malloc_canfail(SkSafeMath::Mul(count, elemSize)); in sk_malloc_canfail()
86 return MakeUsing(sk_malloc_canfail, info, rowBytes); in MakeAllocate()
DSkAutoPixmapStorage.cpp43 void* pixels = sk_malloc_canfail(size); in tryAlloc()
DSkBitmapCache.cpp195 block = sk_malloc_canfail(size); in Alloc()
DSkRegion_path.cpp151 fStorage = (SkRegion::RunType*)sk_malloc_canfail(fStorageCount, sizeof(SkRegion::RunType)); in init()
DSkPathRef.cpp68 void* newAlloc = sk_malloc_canfail(minSize); in shrinkToFit()
/external/skia/include/private/
DSkMalloc.h85 static inline void* sk_malloc_canfail(size_t size) { in sk_malloc_canfail() function
95 SK_API extern void* sk_malloc_canfail(size_t count, size_t elemSize);
/external/skqp/include/private/
DSkMalloc.h85 static inline void* sk_malloc_canfail(size_t size) { in sk_malloc_canfail() function
95 SK_API extern void* sk_malloc_canfail(size_t count, size_t elemSize);
/external/skia/src/codec/
DSkBmpBaseCodec.cpp15 , fSrcBuffer(sk_malloc_canfail(this->srcRowBytes())) in SkBmpBaseCodec()
DSkIcoCodec.cpp58 SkAutoFree dirEntryBuffer(sk_malloc_canfail(sizeof(Entry) * numImages)); in MakeFromStream()
133 SkAutoFree buffer(sk_malloc_canfail(size)); in MakeFromStream()
DSkWuffsCodec.cpp890 void* decoder_raw = sk_malloc_canfail(sizeof__wuffs_gif__decoder()); in SkWuffsCodec_MakeFromStream()
915 workbuf_ptr_raw = workbuf_len <= SIZE_MAX ? sk_malloc_canfail(workbuf_len) : nullptr; in SkWuffsCodec_MakeFromStream()
925 void* pixbuf_ptr_raw = pixbuf_len <= SIZE_MAX ? sk_malloc_canfail(pixbuf_len) : nullptr; in SkWuffsCodec_MakeFromStream()
/external/skqp/src/codec/
DSkBmpBaseCodec.cpp15 , fSrcBuffer(sk_malloc_canfail(this->srcRowBytes())) in SkBmpBaseCodec()
DSkIcoCodec.cpp58 SkAutoFree dirEntryBuffer(sk_malloc_canfail(sizeof(Entry) * numImages)); in MakeFromStream()
133 SkAutoFree buffer(sk_malloc_canfail(size)); in MakeFromStream()
DSkWuffsCodec.cpp874 void* decoder_raw = sk_malloc_canfail(sizeof__wuffs_gif__decoder()); in SkWuffsCodec_MakeFromStream()
899 workbuf_ptr_raw = workbuf_len <= SIZE_MAX ? sk_malloc_canfail(workbuf_len) : nullptr; in SkWuffsCodec_MakeFromStream()
909 void* pixbuf_ptr_raw = pixbuf_len <= SIZE_MAX ? sk_malloc_canfail(pixbuf_len) : nullptr; in SkWuffsCodec_MakeFromStream()
/external/skqp/src/lazy/
DSkDiscardableMemoryPool.cpp167 SkAutoFree addr(sk_malloc_canfail(bytes)); in make()
/external/skia/src/lazy/
DSkDiscardableMemoryPool.cpp167 SkAutoFree addr(sk_malloc_canfail(bytes)); in make()