Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
flutter::testing::MockDlImage Class Reference

#include <mocks.h>

Inheritance diagram for flutter::testing::MockDlImage:
flutter::DlImage

Public Member Functions

 MOCK_METHOD (DlISize, GetSize,(),(const, override))
 
 MOCK_METHOD (sk_sp< SkImage >, skia_image,(),(const, override))
 
 MOCK_METHOD (bool, isOpaque,(),(const, override))
 
 MOCK_METHOD (bool, isTextureBacked,(),(const, override))
 
 MOCK_METHOD (std::shared_ptr< impeller::Texture >, impeller_texture,(),(const, override))
 
 MOCK_METHOD (size_t, GetApproximateByteSize,(),(const, override))
 
 MOCK_METHOD (bool, isUIThreadSafe,(),(const, override))
 
- Public Member Functions inherited from flutter::DlImage
virtual ~DlImage ()
 
virtual sk_sp< SkImage > skia_image () const =0
 If this display list image is meant to be used by the Skia backend, an SkImage instance. Null otherwise.
 
virtual std::shared_ptr< impeller::Textureimpeller_texture () const =0
 If this display list image is meant to be used by the Impeller backend, an Impeller texture instance. Null otherwise.
 
virtual bool isOpaque () const =0
 If the pixel format of this image ignores alpha, this returns true. This method might conservatively return false when it cannot guarnatee an opaque image, for example when the pixel format of the image supports alpha but the image is made up of entirely opaque pixels.
 
virtual bool isTextureBacked () const =0
 
virtual bool isUIThreadSafe () const =0
 If the underlying platform image held by this object has no threading requirements for the release of that image (or if arrangements have already been made to forward that image to the correct thread upon deletion), this method returns true.
 
virtual DlISize GetSize () const =0
 
virtual size_t GetApproximateByteSize () const =0
 
int width () const
 
int height () const
 
DlIRect GetBounds () const
 
virtual OwningContext owning_context () const
 
virtual std::optional< std::string > get_error () const
 
bool Equals (const DlImage *other) const
 
bool Equals (const DlImage &other) const
 
bool Equals (const sk_sp< const DlImage > &other) const
 

Additional Inherited Members

- Public Types inherited from flutter::DlImage
enum class  OwningContext {
  kRaster ,
  kIO
}
 
- Static Public Member Functions inherited from flutter::DlImage
static sk_sp< DlImageMake (const SkImage *image)
 
static sk_sp< DlImageMake (sk_sp< SkImage > image)
 
- Protected Member Functions inherited from flutter::DlImage
 DlImage ()
 

Detailed Description

Definition at line 70 of file mocks.h.

Member Function Documentation

◆ MOCK_METHOD() [1/7]

flutter::testing::MockDlImage::MOCK_METHOD ( bool  ,
isOpaque  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [2/7]

flutter::testing::MockDlImage::MOCK_METHOD ( bool  ,
isTextureBacked  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [3/7]

flutter::testing::MockDlImage::MOCK_METHOD ( bool  ,
isUIThreadSafe  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [4/7]

flutter::testing::MockDlImage::MOCK_METHOD ( DlISize  ,
GetSize  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [5/7]

flutter::testing::MockDlImage::MOCK_METHOD ( size_t  ,
GetApproximateByteSize  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [6/7]

flutter::testing::MockDlImage::MOCK_METHOD ( sk_sp< SkImage >  ,
skia_image  ,
()  ,
(const, override)   
)

◆ MOCK_METHOD() [7/7]

flutter::testing::MockDlImage::MOCK_METHOD ( std::shared_ptr< impeller::Texture ,
impeller_texture  ,
()  ,
(const, override)   
)

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