Home | History | Annotate | Download | only in core

Lines Matching refs:allocator

47     class SK_API Allocator;
676 return this->tryAllocPixels((Allocator*)nullptr);
687 this->allocPixels((Allocator*)nullptr);
690 /** Allocates pixel memory with allocator, and replaces existing SkPixelRef.
692 If allocator is nullptr, use HeapAllocator instead.
694 Returns false if allocator allocPixelRef return false.
696 @param allocator instance of SkBitmap::Allocator instantiation
697 @return true if custom allocator reports success
699 bool SK_WARN_UNUSED_RESULT tryAllocPixels(Allocator* allocator);
701 /** Allocates pixel memory with allocator, and replaces existing SkPixelRef.
703 If allocator is nullptr, use HeapAllocator instead.
705 Aborts if allocator allocPixelRef return false. Abort steps may be provided by
708 @param allocator instance of SkBitmap::Allocator instantiation
710 void allocPixels(Allocator* allocator) {
711 SkASSERT_RELEASE(this->tryAllocPixels(allocator));
1190 generates mask alpha from SkBitmap. allocator may reference a custom allocation
1197 @param allocator method to reserve memory for SkPixelRef; may be nullptr
1201 bool extractAlpha(SkBitmap* dst, const SkPaint* paint, Allocator* allocator,
1220 /** \class SkBitmap::Allocator
1223 class Allocator : public SkRefCnt {
1239 Subclass of allocator that returns a SkPixelRef that allocates its pixel
1240 memory from the heap. This is the default allocator invoked by
1243 class HeapAllocator : public Allocator {