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

#include <mocks.h>

Inheritance diagram for impeller::testing::MockBlitPass:
impeller::BlitPass

Public Member Functions

 MOCK_METHOD (bool, IsValid,(),(const, override))
 
 MOCK_METHOD (bool, EncodeCommands,(const std::shared_ptr< Allocator > &transients_allocator),(const, override))
 
 MOCK_METHOD (void, OnSetLabel,(std::string label),(override))
 
 MOCK_METHOD (bool, OnCopyTextureToTextureCommand,(std::shared_ptr< Texture > source, std::shared_ptr< Texture > destination, IRect source_region, IPoint destination_origin, std::string label),(override))
 
 MOCK_METHOD (bool, OnCopyTextureToBufferCommand,(std::shared_ptr< Texture > source, std::shared_ptr< DeviceBuffer > destination, IRect source_region, size_t destination_offset, std::string label),(override))
 
 MOCK_METHOD (bool, OnCopyBufferToTextureCommand,(BufferView source, std::shared_ptr< Texture > destination, IPoint destination_origin, std::string label),(override))
 
 MOCK_METHOD (bool, OnGenerateMipmapCommand,(std::shared_ptr< Texture > texture, std::string label),(override))
 
- Public Member Functions inherited from impeller::BlitPass
virtual ~BlitPass ()
 
virtual bool IsValid () const =0
 
void SetLabel (std::string label)
 
bool AddCopy (std::shared_ptr< Texture > source, std::shared_ptr< Texture > destination, std::optional< IRect > source_region=std::nullopt, IPoint destination_origin={}, std::string label="")
 Record a command to copy the contents of one texture to another texture. The blit area is limited by the intersection of the texture coverage with respect the source region and destination origin. No work is encoded into the command buffer at this time.
 
bool AddCopy (std::shared_ptr< Texture > source, std::shared_ptr< DeviceBuffer > destination, std::optional< IRect > source_region=std::nullopt, size_t destination_offset=0, std::string label="")
 Record a command to copy the contents of the buffer to the texture. No work is encoded into the command buffer at this time.
 
bool AddCopy (BufferView source, std::shared_ptr< Texture > destination, IPoint destination_origin={}, std::string label="")
 Record a command to copy the contents of the buffer to the texture. No work is encoded into the command buffer at this time.
 
bool GenerateMipmap (std::shared_ptr< Texture > texture, std::string label="")
 Record a command to generate all mip levels for a texture. No work is encoded into the command buffer at this time.
 
virtual bool EncodeCommands (const std::shared_ptr< Allocator > &transients_allocator) const =0
 Encode the recorded commands to the underlying command buffer.
 

Additional Inherited Members

- Protected Member Functions inherited from impeller::BlitPass
 BlitPass ()
 
virtual void OnSetLabel (std::string label)=0
 
virtual bool OnCopyTextureToTextureCommand (std::shared_ptr< Texture > source, std::shared_ptr< Texture > destination, IRect source_region, IPoint destination_origin, std::string label)=0
 
virtual bool OnCopyTextureToBufferCommand (std::shared_ptr< Texture > source, std::shared_ptr< DeviceBuffer > destination, IRect source_region, size_t destination_offset, std::string label)=0
 
virtual bool OnCopyBufferToTextureCommand (BufferView source, std::shared_ptr< Texture > destination, IPoint destination_origin, std::string label)=0
 
virtual bool OnGenerateMipmapCommand (std::shared_ptr< Texture > texture, std::string label)=0
 

Detailed Description

Definition at line 55 of file mocks.h.

Member Function Documentation

◆ MOCK_METHOD() [1/7]

impeller::testing::MockBlitPass::MOCK_METHOD ( bool  ,
EncodeCommands  ,
(const std::shared_ptr< Allocator > &transients_allocator)  ,
(const, override)   
)

◆ MOCK_METHOD() [2/7]

impeller::testing::MockBlitPass::MOCK_METHOD ( bool  ,
IsValid  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [3/7]

impeller::testing::MockBlitPass::MOCK_METHOD ( bool  ,
OnCopyBufferToTextureCommand  ,
(BufferView source, std::shared_ptr< Texture > destination, IPoint destination_origin, std::string label)  ,
(override)   
)

◆ MOCK_METHOD() [4/7]

impeller::testing::MockBlitPass::MOCK_METHOD ( bool  ,
OnCopyTextureToBufferCommand  ,
(std::shared_ptr< Texture > source, std::shared_ptr< DeviceBuffer > destination, IRect source_region, size_t destination_offset, std::string label)  ,
(override)   
)

◆ MOCK_METHOD() [5/7]

impeller::testing::MockBlitPass::MOCK_METHOD ( bool  ,
OnCopyTextureToTextureCommand  ,
(std::shared_ptr< Texture > source, std::shared_ptr< Texture > destination, IRect source_region, IPoint destination_origin, std::string label)  ,
(override)   
)

◆ MOCK_METHOD() [6/7]

impeller::testing::MockBlitPass::MOCK_METHOD ( bool  ,
OnGenerateMipmapCommand  ,
(std::shared_ptr< Texture > texture, std::string label)  ,
(override)   
)

◆ MOCK_METHOD() [7/7]

impeller::testing::MockBlitPass::MOCK_METHOD ( void  ,
OnSetLabel  ,
(std::string label)  ,
(override)   
)

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