Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
sktext::gpu::STSubRunAllocator< InlineStorageSize, InlineStorageAlignment > Class Template Reference

#include <SubRunAllocator.h>

Inheritance diagram for sktext::gpu::STSubRunAllocator< InlineStorageSize, InlineStorageAlignment >:
sktext::gpu::SubRunAllocator

Public Member Functions

 STSubRunAllocator (size_t firstHeapAllocation=InlineStorageSize)
 
- Public Member Functions inherited from sktext::gpu::SubRunAllocator
 SubRunAllocator (char *block, int blockSize, int firstHeapAllocation)
 
 SubRunAllocator (int firstHeapAllocation=0)
 
 SubRunAllocator (const SubRunAllocator &)=delete
 
SubRunAllocatoroperator= (const SubRunAllocator &)=delete
 
 SubRunAllocator (SubRunAllocator &&)=default
 
SubRunAllocatoroperator= (SubRunAllocator &&)=default
 
template<typename T , typename... Args>
TmakePOD (Args &&... args)
 
template<typename T , typename... Args>
std::unique_ptr< T, DestroyermakeUnique (Args &&... args)
 
template<typename T >
TmakePODArray (int n)
 
template<typename T >
SkSpan< TmakePODSpan (SkSpan< const T > s)
 
template<typename T , typename Src , typename Map >
SkSpan< TmakePODArray (const Src &src, Map map)
 
template<typename T >
std::unique_ptr< T[], ArrayDestroyermakeUniqueArray (int n)
 
template<typename T , typename I >
std::unique_ptr< T[], ArrayDestroyermakeUniqueArray (int n, I initializer)
 
template<typename T , typename U , typename Map >
std::unique_ptr< T[], ArrayDestroyermakeUniqueArray (SkSpan< const U > src, Map map)
 
void * alignedBytes (int size, int alignment)
 

Additional Inherited Members

- Static Public Member Functions inherited from sktext::gpu::SubRunAllocator
template<typename T >
static std::tuple< SubRunInitializer< T >, int, SubRunAllocatorAllocateClassMemoryAndArena (int allocSizeHint)
 
- Static Public Attributes inherited from sktext::gpu::SubRunAllocator
template<class T >
static constexpr bool HasNoDestructor = std::is_trivially_destructible<T>::value
 

Detailed Description

template<size_t InlineStorageSize, size_t InlineStorageAlignment>
class sktext::gpu::STSubRunAllocator< InlineStorageSize, InlineStorageAlignment >

Definition at line 333 of file SubRunAllocator.h.

Constructor & Destructor Documentation

◆ STSubRunAllocator()

template<size_t InlineStorageSize, size_t InlineStorageAlignment>
sktext::gpu::STSubRunAllocator< InlineStorageSize, InlineStorageAlignment >::STSubRunAllocator ( size_t  firstHeapAllocation = InlineStorageSize)
inlineexplicit

Definition at line 338 of file SubRunAllocator.h.

339 : SubRunAllocator{this->data(), SkToInt(this->size()), SkToInt(firstHeapAllocation)} {}
constexpr int SkToInt(S x)
Definition SkTo.h:29
AutoTArray< uint8_t > data((int) size)

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