Home | History | Annotate | Download | only in images

Lines Matching refs:allocator

54  *  Special allocator used by getPixels(). Uses preallocated memory
55 * provided if possible, else fall-back on the default allocator
57 class TargetAllocator : public SkBitmap::Allocator {
71 // Call default allocator.
91 typedef SkBitmap::Allocator INHERITED;
174 TargetAllocator allocator(fInfo, pixels, rowBytes);
175 decoder->setAllocator(&allocator);
182 if (allocator.isReady()) { // Did not use pixels!
185 bool copySuccess = bitmap.copyTo(&bm, info.colorType(), &allocator);
186 if (!copySuccess || allocator.isReady()) {