#include <SkGlobals.h>
Classes | |
struct | BootStrap |
class | Rec |
Static Public Member Functions | |
static Rec * | Find (uint32_t tag, Rec *(*create_proc)()) |
static Rec * | Get (uint32_t tag) |
Friends | |
class | SkGraphics |
Definition at line 22 of file SkGlobals.h.
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.
friend class SkGraphics [friend] |
Definition at line 60 of file SkGlobals.h.