Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
skif::Backend Class Referenceabstract

#include <SkImageFilterTypes.h>

Inheritance diagram for skif::Backend:
SkRefCnt SkRefCntBase

Public Member Functions

 ~Backend () override
 
virtual sk_sp< SkDevicemakeDevice (SkISize size, sk_sp< SkColorSpace >, const SkSurfaceProps *props=nullptr) const =0
 
virtual sk_sp< SkSpecialImagemakeImage (const SkIRect &subset, sk_sp< SkImage > image) const =0
 
virtual sk_sp< SkImagegetCachedBitmap (const SkBitmap &data) const =0
 
virtual const SkBlurEnginegetBlurEngine () const =0
 
virtual bool useLegacyFilterResultBlur () const
 
const SkSurfacePropssurfaceProps () const
 
SkColorType colorType () const
 
SkImageFilterCachecache () const
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Protected Member Functions

 Backend (sk_sp< SkImageFilterCache > cache, const SkSurfaceProps &surfaceProps, const SkColorType colorType)
 

Detailed Description

Definition at line 1087 of file SkImageFilterTypes.h.

Constructor & Destructor Documentation

◆ ~Backend()

skif::Backend::~Backend ( )
overridedefault

◆ Backend()

skif::Backend::Backend ( sk_sp< SkImageFilterCache cache,
const SkSurfaceProps surfaceProps,
const SkColorType  colorType 
)
protected

Definition at line 209 of file SkImageFilterTypes.cpp.

212 : fCache(std::move(cache))
213 , fSurfaceProps(surfaceProps)
214 , fColorType(colorType) {}
const SkSurfaceProps & surfaceProps() const
SkImageFilterCache * cache() const
SkColorType colorType() const

Member Function Documentation

◆ cache()

SkImageFilterCache * skif::Backend::cache ( ) const
inline

Definition at line 1113 of file SkImageFilterTypes.h.

1113{ return fCache.get(); }
T * get() const
Definition: SkRefCnt.h:303

◆ colorType()

SkColorType skif::Backend::colorType ( ) const
inline

Definition at line 1111 of file SkImageFilterTypes.h.

1111{ return fColorType; }

◆ getBlurEngine()

virtual const SkBlurEngine * skif::Backend::getBlurEngine ( ) const
pure virtual

◆ getCachedBitmap()

virtual sk_sp< SkImage > skif::Backend::getCachedBitmap ( const SkBitmap data) const
pure virtual

◆ makeDevice()

virtual sk_sp< SkDevice > skif::Backend::makeDevice ( SkISize  size,
sk_sp< SkColorSpace ,
const SkSurfaceProps props = nullptr 
) const
pure virtual

◆ makeImage()

virtual sk_sp< SkSpecialImage > skif::Backend::makeImage ( const SkIRect subset,
sk_sp< SkImage image 
) const
pure virtual

◆ surfaceProps()

const SkSurfaceProps & skif::Backend::surfaceProps ( ) const
inline

Definition at line 1110 of file SkImageFilterTypes.h.

1110{ return fSurfaceProps; }

◆ useLegacyFilterResultBlur()

virtual bool skif::Backend::useLegacyFilterResultBlur ( ) const
inlinevirtual

Definition at line 1107 of file SkImageFilterTypes.h.

1107{ return true; }

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