![]() |
Flutter Engine
The Flutter Engine
|
#include <GrGpuResource.h>
Public Types | |
enum class | LastRemovedRef { kMainRef , kCommandBufferUsage } |
Public Member Functions | |
bool | unique () const |
void | ref () const |
void | unref () const |
void | refCommandBuffer () const |
void | unrefCommandBuffer () const |
![]() | |
SkNoncopyable ()=default | |
SkNoncopyable (SkNoncopyable &&)=default | |
SkNoncopyable & | operator= (SkNoncopyable &&)=default |
Protected Member Functions | |
GrIORef () | |
bool | internalHasRef () const |
bool | internalHasNoCommandBufferUsages () const |
void | addInitialRef () const |
Base class for GrGpuResource. Provides the hooks for resources to interact with the cache. Separated out as a base class to isolate the ref-cnting behavior and provide friendship without exposing all of GrGpuResource.
PRIOR to the last ref being removed DERIVED::notifyARefCntWillBeZero() will be called (static poly morphism using CRTP). It is legal for additional ref's to be added during this time. AFTER the ref count reaches zero DERIVED::notifyARefCntIsZero() will be called.
Definition at line 45 of file GrGpuResource.h.
|
strong |
Enumerator | |
---|---|
kMainRef | |
kCommandBufferUsage |
Definition at line 57 of file GrGpuResource.h.
Definition at line 86 of file GrGpuResource.h.
|
inlineprotected |
Definition at line 94 of file GrGpuResource.h.
|
inlineprotected |
Definition at line 89 of file GrGpuResource.h.
|
inlineprotected |
Definition at line 88 of file GrGpuResource.h.
|
inline |
Definition at line 49 of file GrGpuResource.h.
|
inline |
Definition at line 69 of file GrGpuResource.h.
|
inline |
Definition at line 47 of file GrGpuResource.h.
|
inline |
Definition at line 62 of file GrGpuResource.h.
|
inline |
Definition at line 74 of file GrGpuResource.h.