Flutter Engine
The Flutter Engine
Public Member Functions | Private Member Functions | List of all members
GrRecycledResource Class Referenceabstract

#include <GrManagedResource.h>

Inheritance diagram for GrRecycledResource:
GrManagedResource SkNoncopyable GrVkRecycledResource GrVkDescriptorSet

Public Member Functions

void recycle () const
 
- Public Member Functions inherited from GrManagedResource
 GrManagedResource ()
 
virtual ~GrManagedResource ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Private Member Functions

virtual void onRecycle () const =0
 

Detailed Description

Definition at line 194 of file GrManagedResource.h.

Member Function Documentation

◆ onRecycle()

virtual void GrRecycledResource::onRecycle ( ) const
privatepure virtual

◆ recycle()

void GrRecycledResource::recycle ( ) const
inline

Definition at line 199 of file GrManagedResource.h.

199 {
200 if (this->unique()) {
201 this->onRecycle();
202 } else {
203 this->unref();
204 }
205 }
virtual void onRecycle() const =0

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