Flutter Engine
The Flutter Engine
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)
Definition: SkArenaAlloc.h:200
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

◆ 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: