Skia
2DGraphicsLibrary
|
Templated version of GrGpuResourceRef to enforce type safety. More...
#include <GrGpuResourceRef.h>
Public Member Functions | |
GrTGpuResourceRef (T *resource, GrIOType ioType) | |
Adopts a ref from the caller. More... | |
T * | get () const |
void | set (T *resource, GrIOType ioType) |
Adopts a ref from the caller. More... | |
Public Member Functions inherited from GrGpuResourceRef | |
GrGpuResource * | getResource () const |
bool | ownsPendingIO () const |
Does this object own a pending read or write on the resource it is wrapping. More... | |
void | reset () |
Shortcut for calling setResource() with NULL. More... | |
Private Types | |
typedef GrGpuResourceRef | INHERITED |
Additional Inherited Members | |
Protected Member Functions inherited from GrGpuResourceRef | |
GrGpuResourceRef (GrGpuResource *, GrIOType) | |
Adopts a ref from the caller. More... | |
void | setResource (GrGpuResource *, GrIOType) |
Adopts a ref from the caller. More... | |
Templated version of GrGpuResourceRef to enforce type safety.
|
inline |
Adopts a ref from the caller.
ioType expresses what type of IO operations will be marked as pending on the resource when markPendingIO is called.
|
inline |
Adopts a ref from the caller.
ioType expresses what type of IO operations will be marked as pending on the resource when markPendingIO is called.