9 #ifndef SkMallocPixelRef_DEFINED
10 #define SkMallocPixelRef_DEFINED
12 #include "SkPixelRef.h"
65 typedef void (*ReleaseProc)(
void* addr,
void* context);
68 void* addr, ReleaseProc proc,
86 void* getAddr()
const {
return fStorage; }
118 ReleaseProc fReleaseProc;
119 void* fReleaseProcContext;
122 ReleaseProc proc,
void* context);
Describe an image's dimensions and pixel type.
Definition: SkImageInfo.h:181
SkColorTable holds an array SkPMColors (premultiplied 32-bit colors) used by 8-bit bitmaps...
Definition: SkColorTable.h:25
virtual size_t getAllocatedSizeInBytes() const
Returns the size (in bytes) of the internally allocated memory.
Definition: SkMallocPixelRef.h:88
SkData holds an immutable data buffer.
Definition: SkData.h:22
This class is the smart container for pixel memory, and is used with SkBitmap.
Definition: SkPixelRef.h:38
virtual bool onNewLockPixels(LockRec *)=0
On success, returns true and fills out the LockRec for the pixels.
To access the actual pixels of a pixelref, it must be "locked".
Definition: SkPixelRef.h:62
Definition: SkMallocPixelRef.h:93
Definition: SkPixelRef.h:394
virtual void onUnlockPixels()=0
Balancing the previous successful call to onNewLockPixels.
We explicitly use the same allocator for our pixels that SkMask does, so that we can freely assign me...
Definition: SkMallocPixelRef.h:17