Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
AutoPoolReleaser Class Reference

Public Member Functions

 AutoPoolReleaser (GrMemoryPool &pool)
 
 ~AutoPoolReleaser ()
 
void add (void *ptr)
 

Detailed Description

Definition at line 238 of file GrMemoryPoolTest.cpp.

Constructor & Destructor Documentation

◆ AutoPoolReleaser()

AutoPoolReleaser::AutoPoolReleaser ( GrMemoryPool pool)
inline

Definition at line 240 of file GrMemoryPoolTest.cpp.

240 : fPool(pool) {
241 }
AutoreleasePool pool

◆ ~AutoPoolReleaser()

AutoPoolReleaser::~AutoPoolReleaser ( )
inline

Definition at line 242 of file GrMemoryPoolTest.cpp.

242 {
243 for (void* ptr: fAllocated) {
244 fPool.release(ptr);
245 }
246 }
void release(void *p)

Member Function Documentation

◆ add()

void AutoPoolReleaser::add ( void *  ptr)
inline

Definition at line 247 of file GrMemoryPoolTest.cpp.

247 {
248 fAllocated.push_back(ptr);
249 }

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