Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Friends | List of all members
impeller::AllocatorGLES Class Referencefinal

#include <allocator_gles.h>

Inheritance diagram for impeller::AllocatorGLES:
impeller::Allocator

Public Member Functions

 ~AllocatorGLES () 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)
 
virtual uint16_t MinimumBytesPerRow (PixelFormat format) const
 Minimum value for row_bytes on a Texture. The row bytes parameter of that method must be aligned to this value.
 
std::shared_ptr< DeviceBufferCreateBufferWithCopy (const uint8_t *buffer, size_t length)
 
std::shared_ptr< DeviceBufferCreateBufferWithCopy (const fml::Mapping &mapping)
 
virtual void DebugTraceMemoryStatistics () const
 Write debug memory usage information to the dart timeline in debug and profile modes.
 

Private Member Functions

std::shared_ptr< DeviceBufferOnCreateBuffer (const DeviceBufferDescriptor &desc) override
 
std::shared_ptr< TextureOnCreateTexture (const TextureDescriptor &desc) override
 
ISize GetMaxTextureSizeSupported () const override
 

Friends

class ContextGLES
 

Additional Inherited Members

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

Detailed Description

Definition at line 14 of file allocator_gles.h.

Constructor & Destructor Documentation

◆ ~AllocatorGLES()

impeller::AllocatorGLES::~AllocatorGLES ( )
overridedefault

Member Function Documentation

◆ GetMaxTextureSizeSupported()

ISize impeller::AllocatorGLES::GetMaxTextureSizeSupported ( ) const
overrideprivatevirtual

Implements impeller::Allocator.

Definition at line 47 of file allocator_gles.cc.

47 {
48 return reactor_->GetProcTable().GetCapabilities()->max_texture_size;
49}

◆ OnCreateBuffer()

std::shared_ptr< DeviceBuffer > impeller::AllocatorGLES::OnCreateBuffer ( const DeviceBufferDescriptor desc)
overrideprivatevirtual

Implements impeller::Allocator.

Definition at line 28 of file allocator_gles.cc.

29 {
30 auto backing_store = std::make_shared<Allocation>();
31 if (!backing_store->Truncate(desc.size)) {
32 return nullptr;
33 }
34 return std::make_shared<DeviceBufferGLES>(desc, //
35 reactor_, //
36 std::move(backing_store) //
37 );
38}

◆ OnCreateTexture()

std::shared_ptr< Texture > impeller::AllocatorGLES::OnCreateTexture ( const TextureDescriptor desc)
overrideprivatevirtual

Implements impeller::Allocator.

Definition at line 41 of file allocator_gles.cc.

42 {
43 return std::make_shared<TextureGLES>(reactor_, desc);
44}

Friends And Related Symbol Documentation

◆ ContextGLES

friend class ContextGLES
friend

Definition at line 20 of file allocator_gles.h.


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