Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkPixelRefFactory Class Referenceabstract
Inheritance diagram for SkPixelRefFactory:
SkRefCnt SkRefCntBase SkMallocPixelRef::PRFactory SkMallocPixelRef::ZeroedPRFactory

Public Member Functions

virtual SkPixelRefcreate (const SkImageInfo &, size_t rowBytes, SkColorTable *)=0
 Allocate a new pixelref matching the specified ImageInfo, allocating the memory for the pixels. 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...
 

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 SkPixelRef* SkPixelRefFactory::create ( const SkImageInfo ,
size_t  rowBytes,
SkColorTable  
)
pure virtual

Allocate a new pixelref matching the specified ImageInfo, allocating the memory for the pixels.

If the ImageInfo requires a ColorTable, the pixelref will ref() the colortable. On failure return NULL.

Implemented in SkMallocPixelRef::ZeroedPRFactory, and SkMallocPixelRef::PRFactory.


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