Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
SkSL::MemoryPool Class Reference

#include <SkSLMemoryPool.h>

Public Member Functions

void * allocate (size_t size)
 
void release (void *)
 

Static Public Member Functions

static std::unique_ptr< MemoryPoolMake ()
 

Detailed Description

Definition at line 18 of file SkSLMemoryPool.h.

Member Function Documentation

◆ allocate()

void * SkSL::MemoryPool::allocate ( size_t  size)
inline

Definition at line 23 of file SkSLMemoryPool.h.

23 {
24 return fArena.makeBytesAlignedTo(size, kAlignment);
25 }
void * makeBytesAlignedTo(size_t size, size_t align)

◆ Make()

static std::unique_ptr< MemoryPool > SkSL::MemoryPool::Make ( )
inlinestatic

Definition at line 20 of file SkSLMemoryPool.h.

20 {
21 return std::make_unique<MemoryPool>();
22 }

◆ release()

void SkSL::MemoryPool::release ( void *  )
inline

Definition at line 26 of file SkSLMemoryPool.h.

26 {
27 // SkArenaAlloc does not ever attempt to reclaim space.
28 }

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