Flutter Impeller
impeller::AllocatorMTL Class Referencefinal

#include <allocator_mtl.h>

Inheritance diagram for impeller::AllocatorMTL:
impeller::Allocator

Public Member Functions

 AllocatorMTL ()
 
 ~AllocatorMTL () override
 
Bytes DebugGetHeapUsage () const override
 
- Public Member Functions inherited from impeller::Allocator
virtual ~Allocator ()
 
bool IsValid () const
 
std::shared_ptr< DeviceBufferCreateBuffer (const DeviceBufferDescriptor &desc)
 
std::shared_ptr< TextureCreateTexture (const TextureDescriptor &desc)
 
std::shared_ptr< DeviceBufferCreateBufferWithCopy (const uint8_t *buffer, size_t length)
 
std::shared_ptr< DeviceBufferCreateBufferWithCopy (const fml::Mapping &mapping)
 

Friends

class ContextMTL
 

Additional Inherited Members

- Protected Member Functions inherited from impeller::Allocator
 Allocator ()
 

Detailed Description

Definition at line 37 of file allocator_mtl.h.

Constructor & Destructor Documentation

◆ AllocatorMTL()

impeller::AllocatorMTL::AllocatorMTL ( )

◆ ~AllocatorMTL()

impeller::AllocatorMTL::~AllocatorMTL ( )
overridedefault

Member Function Documentation

◆ DebugGetHeapUsage()

Bytes impeller::AllocatorMTL::DebugGetHeapUsage ( ) const
overridevirtual

Reimplemented from impeller::Allocator.

Definition at line 258 of file allocator_mtl.mm.

258  {
259 #ifdef IMPELLER_DEBUG
260  return debug_allocater_->GetAllocationSize();
261 #else
262  return {};
263 #endif // IMPELLER_DEBUG
264 }

Friends And Related Function Documentation

◆ ContextMTL

friend class ContextMTL
friend

Definition at line 48 of file allocator_mtl.h.


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