Flutter Engine
The Flutter Engine
Public Member Functions | Public Attributes | List of all members
Effect Class Reference
Inheritance diagram for Effect:
EffectImpl

Public Member Functions

 Effect ()
 
virtual ~Effect ()
 
void ref ()
 
void unref ()
 
intmethod () const
 

Public Attributes

int fRefCnt
 

Detailed Description

Definition at line 91 of file RefCntTest.cpp.

Constructor & Destructor Documentation

◆ Effect()

Effect::Effect ( )
inline

Definition at line 93 of file RefCntTest.cpp.

93 : fRefCnt(1) {
94 gNewCounter += 1;
95 }
static int gNewCounter
Definition: RefCntTest.cpp:82
int fRefCnt
Definition: RefCntTest.cpp:98

◆ ~Effect()

virtual Effect::~Effect ( )
inlinevirtual

Definition at line 96 of file RefCntTest.cpp.

96{}

Member Function Documentation

◆ method()

int * Effect::method ( ) const
inline

Definition at line 114 of file RefCntTest.cpp.

114{ return new int; }

◆ ref()

void Effect::ref ( )
inline

Definition at line 100 of file RefCntTest.cpp.

100 {
101 gRefCounter += 1;
102 fRefCnt += 1;
103 }
static int gRefCounter
Definition: RefCntTest.cpp:80

◆ unref()

void Effect::unref ( )
inline

Definition at line 104 of file RefCntTest.cpp.

104 {
105 gUnrefCounter += 1;
106
107 SkASSERT(fRefCnt > 0);
108 if (0 == --fRefCnt) {
109 gDeleteCounter += 1;
110 delete this;
111 }
112 }
static int gDeleteCounter
Definition: RefCntTest.cpp:83
static int gUnrefCounter
Definition: RefCntTest.cpp:81
#define SkASSERT(cond)
Definition: SkAssert.h:116

Member Data Documentation

◆ fRefCnt

int Effect::fRefCnt

Definition at line 98 of file RefCntTest.cpp.


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