Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkBitmap::Allocator Class Referenceabstract
Inheritance diagram for SkBitmap::Allocator:
SkRefCnt SkRefCntBase SkBitmap::HeapAllocator

Public Member Functions

virtual bool allocPixelRef (SkBitmap *, SkColorTable *)=0
 Allocate the pixel memory for the bitmap, given its dimensions and colortype. More...
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 Default construct, initializing the reference count to 1.
 
virtual ~SkRefCntBase ()
 Destruct, asserting that the reference count is 1.
 
int32_t getRefCnt () const
 Return the reference count. More...
 
void validate () const
 
bool unique () const
 May return true if the caller is the only owner. More...
 
void ref () const
 Increment the reference count. More...
 
void unref () const
 Decrement the reference count. More...
 

Private Types

typedef SkRefCnt INHERITED
 

Additional Inherited Members

- Protected Member Functions inherited from SkRefCntBase
void internal_dispose_restore_refcnt_to_1 () const
 Allow subclasses to call this if they've overridden internal_dispose so they can reset fRefCnt before the destructor is called or if they choose not to call the destructor (e.g. More...
 

Member Function Documentation

virtual bool SkBitmap::Allocator::allocPixelRef ( SkBitmap ,
SkColorTable  
)
pure virtual

Allocate the pixel memory for the bitmap, given its dimensions and colortype.

Return true on success, where success means either setPixels or setPixelRef was called. If the colortype requires a colortable, it also must be installed via setColorTable. If false is returned, the bitmap and colortable should be left unchanged.

Implemented in SkBitmap::HeapAllocator.


The documentation for this class was generated from the following file: