Lines Matching refs:allocator
47 class SK_API Allocator;
666 return this->tryAllocPixels((Allocator*)nullptr);
677 this->allocPixels((Allocator*)nullptr);
680 /** Allocates pixel memory with allocator, and replaces existing SkPixelRef.
682 If allocator is nullptr, use HeapAllocator instead.
684 Returns false if Allocator::allocPixelRef return false.
686 @param allocator instance of SkBitmap::Allocator instantiation
687 @return true if custom allocator reports success
689 bool SK_WARN_UNUSED_RESULT tryAllocPixels(Allocator* allocator);
691 /** Allocates pixel memory with allocator, and replaces existing SkPixelRef.
693 If allocator is nullptr, use HeapAllocator instead.
695 Aborts if Allocator::allocPixelRef return false. Abort steps may be provided by
698 @param allocator instance of SkBitmap::Allocator instantiation
700 void allocPixels(Allocator* allocator) {
701 SkASSERT_RELEASE(this->tryAllocPixels(allocator));
1180 generates mask alpha from SkBitmap. allocator may reference a custom allocation
1187 @param allocator method to reserve memory for SkPixelRef; may be nullptr
1191 bool extractAlpha(SkBitmap* dst, const SkPaint* paint, Allocator* allocator,
1210 /** \class SkBitmap::Allocator
1213 class Allocator : public SkRefCnt {
1229 Subclass of SkBitmap::Allocator that returns a SkPixelRef that allocates its pixel
1230 memory from the heap. This is the default SkBitmap::Allocator invoked by
1233 class HeapAllocator : public Allocator {