Flutter Impeller
impeller::AllocatorMTL Class Referencefinal

#include <allocator_mtl.h>

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

Public Member Functions

 AllocatorMTL ()
 
 ~AllocatorMTL () override
 
size_t 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 35 of file allocator_mtl.h.

Constructor & Destructor Documentation

◆ AllocatorMTL()

impeller::AllocatorMTL::AllocatorMTL ( )

◆ ~AllocatorMTL()

impeller::AllocatorMTL::~AllocatorMTL ( )
overridedefault

Member Function Documentation

◆ DebugGetHeapUsage()

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

Reimplemented from impeller::Allocator.

Definition at line 259 of file allocator_mtl.mm.

259  {
260 #ifdef IMPELLER_DEBUG
261  return debug_allocater_->GetAllocationSizeMB();
262 #else
263  return 0u;
264 #endif // IMPELLER_DEBUG
265 }

Friends And Related Function Documentation

◆ ContextMTL

friend class ContextMTL
friend

Definition at line 46 of file allocator_mtl.h.


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