Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkAutoPixmapUnlock Class Reference
Inheritance diagram for SkAutoPixmapUnlock:

Public Member Functions

 SkAutoPixmapUnlock (const SkPixmap &pm, void(*unlock)(void *), void *ctx)
 
const SkPixmappixmap () const
 Return the currently locked pixmap. More...
 
bool isLocked () const
 
void unlock ()
 Unlocks the pixmap. More...
 
void reset (const SkPixmap &pm, void(*unlock)(void *), void *ctx)
 If there is a currently locked pixmap, unlock it, then copy the specified pixmap and (optional) unlock proc/context.
 

Private Attributes

void(* fUnlockProc )(void *)
 
void * fUnlockContext
 
SkPixmap fPixmap
 
bool fIsLocked
 

Friends

class SkBitmap
 

Member Function Documentation

const SkPixmap& SkAutoPixmapUnlock::pixmap ( ) const
inline

Return the currently locked pixmap.

Undefined if it has been unlocked.

void SkAutoPixmapUnlock::unlock ( )
inline

Unlocks the pixmap.

Can safely be called more than once as it will only call the underlying unlock-proc once.


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