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

#include <mocks.h>

Inheritance diagram for impeller::testing::MockTexture:
impeller::Texture

Public Member Functions

 MockTexture (const TextureDescriptor &desc)
 
 MOCK_METHOD (void, SetLabel,(std::string_view label),(override))
 
 MOCK_METHOD (bool, IsValid,(),(const, override))
 
 MOCK_METHOD (ISize, GetSize,(),(const, override))
 
 MOCK_METHOD (bool, OnSetContents,(const uint8_t *contents, size_t length, size_t slice),(override))
 
 MOCK_METHOD (bool, OnSetContents,(std::shared_ptr< const fml::Mapping > mapping, size_t slice),(override))
 
- Public Member Functions inherited from impeller::Texture
virtual ~Texture ()
 
virtual void SetLabel (std::string_view label)=0
 
bool SetContents (const uint8_t *contents, size_t length, size_t slice=0, bool is_opaque=false)
 
bool SetContents (std::shared_ptr< const fml::Mapping > mapping, size_t slice=0, bool is_opaque=false)
 
virtual bool IsValid () const =0
 
virtual ISize GetSize () const =0
 
bool IsOpaque () const
 
size_t GetMipCount () const
 
const TextureDescriptorGetTextureDescriptor () const
 
void SetCoordinateSystem (TextureCoordinateSystem coordinate_system)
 
TextureCoordinateSystem GetCoordinateSystem () const
 
virtual Scalar GetYCoordScale () const
 
bool NeedsMipmapGeneration () const
 

Additional Inherited Members

- Protected Member Functions inherited from impeller::Texture
 Texture (TextureDescriptor desc)
 
virtual bool OnSetContents (const uint8_t *contents, size_t length, size_t slice)=0
 
virtual bool OnSetContents (std::shared_ptr< const fml::Mapping > mapping, size_t slice)=0
 
- Protected Attributes inherited from impeller::Texture
bool mipmap_generated_ = false
 

Detailed Description

Definition at line 175 of file mocks.h.

Constructor & Destructor Documentation

◆ MockTexture()

impeller::testing::MockTexture::MockTexture ( const TextureDescriptor desc)
inlineexplicit

Definition at line 177 of file mocks.h.

177: Texture(desc) {}
Texture(TextureDescriptor desc)
Definition texture.cc:11

Member Function Documentation

◆ MOCK_METHOD() [1/5]

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

◆ MOCK_METHOD() [2/5]

impeller::testing::MockTexture::MOCK_METHOD ( bool  ,
OnSetContents  ,
(const uint8_t *contents, size_t length, size_t slice)  ,
(override)   
)

◆ MOCK_METHOD() [3/5]

impeller::testing::MockTexture::MOCK_METHOD ( bool  ,
OnSetContents  ,
(std::shared_ptr< const fml::Mapping > mapping, size_t slice)  ,
(override)   
)

◆ MOCK_METHOD() [4/5]

impeller::testing::MockTexture::MOCK_METHOD ( ISize  ,
GetSize  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [5/5]

impeller::testing::MockTexture::MOCK_METHOD ( void  ,
SetLabel  ,
(std::string_view label)  ,
(override)   
)

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