Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
impeller::testing::MockAllocator Class Reference

#include <mocks.h>

Inheritance diagram for impeller::testing::MockAllocator:
impeller::Allocator

Public Member Functions

 MOCK_METHOD (ISize, GetMaxTextureSizeSupported,(),(const, override))
 
 MOCK_METHOD (std::shared_ptr< DeviceBuffer >, OnCreateBuffer,(const DeviceBufferDescriptor &desc),(override))
 
 MOCK_METHOD (std::shared_ptr< Texture >, OnCreateTexture,(const TextureDescriptor &desc),(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. More...
 
std::shared_ptr< DeviceBufferCreateBufferWithCopy (const uint8_t *buffer, size_t length)
 
std::shared_ptr< DeviceBufferCreateBufferWithCopy (const fml::Mapping &mapping)
 
virtual ISize GetMaxTextureSizeSupported () const =0
 
virtual void DebugTraceMemoryStatistics () const
 Write debug memory usage information to the dart timeline in debug and profile modes. More...
 

Additional Inherited Members

- Protected Member Functions inherited from impeller::Allocator
 Allocator ()
 
virtual std::shared_ptr< DeviceBufferOnCreateBuffer (const DeviceBufferDescriptor &desc)=0
 
virtual std::shared_ptr< TextureOnCreateTexture (const TextureDescriptor &desc)=0
 

Detailed Description

Definition at line 42 of file mocks.h.

Member Function Documentation

◆ MOCK_METHOD() [1/3]

impeller::testing::MockAllocator::MOCK_METHOD ( ISize  ,
GetMaxTextureSizeSupported  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [2/3]

impeller::testing::MockAllocator::MOCK_METHOD ( std::shared_ptr< DeviceBuffer ,
OnCreateBuffer  ,
(const DeviceBufferDescriptor &desc)  ,
(override)   
)

◆ MOCK_METHOD() [3/3]

impeller::testing::MockAllocator::MOCK_METHOD ( std::shared_ptr< Texture ,
OnCreateTexture  ,
(const TextureDescriptor &desc)  ,
(override)   
)

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