Skia
2DGraphicsLibrary
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GrTGpuResourceRef< T > Class Template Reference

Templated version of GrGpuResourceRef to enforce type safety. More...

#include <GrGpuResourceRef.h>

Inheritance diagram for GrTGpuResourceRef< T >:
GrGpuResourceRef

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
GrGpuResourcegetResource () 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...
 

Detailed Description

template<typename T>
class GrTGpuResourceRef< T >

Templated version of GrGpuResourceRef to enforce type safety.

Constructor & Destructor Documentation

template<typename T>
GrTGpuResourceRef< T >::GrTGpuResourceRef ( T *  resource,
GrIOType  ioType 
)
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.

Member Function Documentation

template<typename T>
void GrTGpuResourceRef< T >::set ( T *  resource,
GrIOType  ioType 
)
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.


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