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

#include <mocks.h>

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

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 flutter::Texture
 Texture (int64_t id)
 
virtual ~Texture ()
 
virtual void Paint (PaintContext &context, const SkRect &bounds, bool freeze, const DlImageSampling sampling)=0
 
virtual void MarkNewFrameAvailable ()=0
 
virtual void OnTextureUnregistered ()=0
 
int64_t Id ()
 
- Public Member Functions inherited from flutter::ContextListener
 ContextListener ()
 
 ~ContextListener ()
 
virtual void OnGrContextCreated ()=0
 
virtual void OnGrContextDestroyed ()=0
 

Detailed Description

Definition at line 177 of file mocks.h.

Constructor & Destructor Documentation

◆ MockTexture()

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

Definition at line 179 of file mocks.h.

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: