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

#include <mocks.h>

Inheritance diagram for impeller::testing::MockDeviceBuffer:
impeller::DeviceBuffer

Public Member Functions

 MockDeviceBuffer (const DeviceBufferDescriptor &desc)
 
 MOCK_METHOD (bool, SetLabel,(const std::string &label),(override))
 
 MOCK_METHOD (bool, SetLabel,(const std::string &label, Range range),(override))
 
 MOCK_METHOD (uint8_t *, OnGetContents,(),(const, override))
 
 MOCK_METHOD (bool, OnCopyHostBuffer,(const uint8_t *source, Range source_range, size_t offset),(override))
 
- Public Member Functions inherited from impeller::DeviceBuffer
virtual ~DeviceBuffer ()
 
bool CopyHostBuffer (const uint8_t *source, Range source_range, size_t offset=0u)
 
virtual bool SetLabel (const std::string &label)=0
 
virtual bool SetLabel (const std::string &label, Range range)=0
 
const DeviceBufferDescriptorGetDeviceBufferDescriptor () const
 
virtual uint8_t * OnGetContents () const =0
 
virtual void Flush (std::optional< Range > range=std::nullopt) const
 
virtual void Invalidate (std::optional< Range > range=std::nullopt) const
 

Additional Inherited Members

- Static Public Member Functions inherited from impeller::DeviceBuffer
static BufferView AsBufferView (std::shared_ptr< DeviceBuffer > buffer)
 Create a buffer view of this entire buffer. More...
 
- Protected Member Functions inherited from impeller::DeviceBuffer
 DeviceBuffer (DeviceBufferDescriptor desc)
 
virtual bool OnCopyHostBuffer (const uint8_t *source, Range source_range, size_t offset)=0
 
- Protected Attributes inherited from impeller::DeviceBuffer
const DeviceBufferDescriptor desc_
 

Detailed Description

Definition at line 22 of file mocks.h.

Constructor & Destructor Documentation

◆ MockDeviceBuffer()

impeller::testing::MockDeviceBuffer::MockDeviceBuffer ( const DeviceBufferDescriptor desc)
inlineexplicit

Definition at line 24 of file mocks.h.

Member Function Documentation

◆ MOCK_METHOD() [1/4]

impeller::testing::MockDeviceBuffer::MOCK_METHOD ( bool  ,
OnCopyHostBuffer  ,
(const uint8_t *source, Range source_range, size_t offset ,
(override)   
)

◆ MOCK_METHOD() [2/4]

impeller::testing::MockDeviceBuffer::MOCK_METHOD ( bool  ,
SetLabel  ,
(const std::string &label)  ,
(override)   
)

◆ MOCK_METHOD() [3/4]

impeller::testing::MockDeviceBuffer::MOCK_METHOD ( bool  ,
SetLabel  ,
(const std::string &label, Range range)  ,
(override)   
)

◆ MOCK_METHOD() [4/4]

impeller::testing::MockDeviceBuffer::MOCK_METHOD ( uint8_t *  ,
OnGetContents  ,
()  ,
(const, override)   
)

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