SkGlobals Class Reference

#include <SkGlobals.h>

List of all members.

Classes

struct  BootStrap
class  Rec

Static Public Member Functions

static RecFind (uint32_t tag, Rec *(*create_proc)())
static RecGet (uint32_t tag)

Friends

class SkGraphics

Detailed Description

Definition at line 22 of file SkGlobals.h.


Member Function Documentation

static Rec* SkGlobals::Find ( uint32_t  tag,
Rec *(*)()  create_proc 
) [static]

Look for a matching Rec for the specified tag. If one is found, return it. If one is not found, if create_proc is null, return null, else call the proc, and if it returns a Rec, add it to the global list and return it.

create_proc can NOT call back into SkGlobals::Find (it would deadlock)

static Rec* SkGlobals::Get ( uint32_t  tag  )  [inline, static]

Helper for Find, when you want to assert that the Rec is already in the list

Definition at line 44 of file SkGlobals.h.


Friends And Related Function Documentation

friend class SkGraphics [friend]

Definition at line 60 of file SkGlobals.h.


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

Generated on Tue Oct 20 11:03:42 2009 for Skia by  doxygen 1.6.1