Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
int fRefCnt

◆ ~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; }
Type::kYUV Type::kRGBA() int(0.7 *637)

◆ ref()

void Effect::ref ( )
inline

Definition at line 100 of file RefCntTest.cpp.

100 {
101 gRefCounter += 1;
102 fRefCnt += 1;
103 }
static int gRefCounter

◆ 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
static int gUnrefCounter
#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: