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

#include <image_decoder_no_gl_unittests.h>

Inheritance diagram for impeller::TestImpellerAllocator:
impeller::Allocator

Public Member Functions

 TestImpellerAllocator ()
 
 ~TestImpellerAllocator ()=default
 
- 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)
 
virtual void DebugTraceMemoryStatistics () const
 Write debug memory usage information to the dart timeline in debug and profile modes.
 

Private Member Functions

uint16_t MinimumBytesPerRow (PixelFormat format) const override
 Minimum value for row_bytes on a Texture. The row bytes parameter of that method must be aligned to this value.
 
ISize GetMaxTextureSizeSupported () const override
 
std::shared_ptr< DeviceBufferOnCreateBuffer (const DeviceBufferDescriptor &desc) override
 
std::shared_ptr< TextureOnCreateTexture (const TextureDescriptor &desc) override
 

Additional Inherited Members

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

Detailed Description

Definition at line 71 of file image_decoder_no_gl_unittests.h.

Constructor & Destructor Documentation

◆ TestImpellerAllocator()

impeller::TestImpellerAllocator::TestImpellerAllocator ( )
inline

Definition at line 73 of file image_decoder_no_gl_unittests.h.

73{}

◆ ~TestImpellerAllocator()

impeller::TestImpellerAllocator::~TestImpellerAllocator ( )
default

Member Function Documentation

◆ GetMaxTextureSizeSupported()

ISize impeller::TestImpellerAllocator::GetMaxTextureSizeSupported ( ) const
inlineoverrideprivatevirtual

Implements impeller::Allocator.

Definition at line 80 of file image_decoder_no_gl_unittests.h.

80 {
81 return ISize{2048, 2048};
82 }
TSize< int64_t > ISize
Definition size.h:138

◆ MinimumBytesPerRow()

uint16_t impeller::TestImpellerAllocator::MinimumBytesPerRow ( PixelFormat  format) const
inlineoverrideprivatevirtual

Minimum value for row_bytes on a Texture. The row bytes parameter of that method must be aligned to this value.

Reimplemented from impeller::Allocator.

Definition at line 78 of file image_decoder_no_gl_unittests.h.

78{ return 0; }

◆ OnCreateBuffer()

std::shared_ptr< DeviceBuffer > impeller::TestImpellerAllocator::OnCreateBuffer ( const DeviceBufferDescriptor desc)
inlineoverrideprivatevirtual

Implements impeller::Allocator.

Definition at line 84 of file image_decoder_no_gl_unittests.h.

85 {
86 return std::make_shared<TestImpellerDeviceBuffer>(desc);
87 }

◆ OnCreateTexture()

std::shared_ptr< Texture > impeller::TestImpellerAllocator::OnCreateTexture ( const TextureDescriptor desc)
inlineoverrideprivatevirtual

Implements impeller::Allocator.

Definition at line 89 of file image_decoder_no_gl_unittests.h.

90 {
91 return std::make_shared<TestImpellerTexture>(desc);
92 }

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