Flutter Engine
The Flutter Engine
Public Member Functions | Protected Member Functions | List of all members
sksg::ImageFilter Class Referenceabstract

#include <SkSGRenderEffect.h>

Inheritance diagram for sksg::ImageFilter:
sksg::Node SkRefCnt SkRefCntBase sksg::BlurImageFilter sksg::DropShadowImageFilter sksg::ExternalImageFilter

Public Member Functions

 ~ImageFilter () override
 
const sk_sp< SkImageFilter > & getFilter () const
 
- Public Member Functions inherited from sksg::Node
const SkRectrevalidate (InvalidationController *, const SkMatrix &)
 
void invalidate (bool damage=true)
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Protected Member Functions

 ImageFilter ()
 
SkRect onRevalidate (InvalidationController *, const SkMatrix &) final
 
virtual sk_sp< SkImageFilteronRevalidateFilter ()=0
 
- Protected Member Functions inherited from sksg::Node
 Node (uint32_t invalTraits)
 
 ~Node () override
 
const SkRectbounds () const
 
bool hasInval () const
 
virtual SkRect onRevalidate (InvalidationController *, const SkMatrix &ctm)=0
 
void observeInval (const sk_sp< Node > &)
 
void unobserveInval (const sk_sp< Node > &)
 

Additional Inherited Members

- Protected Types inherited from sksg::Node
enum  InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 }
 

Detailed Description

ImageFilter base class.

Definition at line 108 of file SkSGRenderEffect.h.

Constructor & Destructor Documentation

◆ ~ImageFilter()

sksg::ImageFilter::~ImageFilter ( )
overridedefault

◆ ImageFilter()

sksg::ImageFilter::ImageFilter ( )
protected

Definition at line 151 of file SkSGRenderEffect.cpp.

151: INHERITED(kBubbleDamage_Trait) {}
@ kBubbleDamage_Trait
Definition: SkSGNode.h:46

Member Function Documentation

◆ getFilter()

const sk_sp< SkImageFilter > & sksg::ImageFilter::getFilter ( ) const
inline

Definition at line 112 of file SkSGRenderEffect.h.

112 {
113 SkASSERT(!this->hasInval());
114 return fFilter;
115 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
bool hasInval() const
Definition: SkSGNode.h:60

◆ onRevalidate()

SkRect sksg::ImageFilter::onRevalidate ( InvalidationController ,
const SkMatrix  
)
finalprotectedvirtual

Implements sksg::Node.

Definition at line 155 of file SkSGRenderEffect.cpp.

155 {
156 SkASSERT(this->hasInval());
157
158 fFilter = this->onRevalidateFilter();
159 return SkRect::MakeEmpty();
160}
virtual sk_sp< SkImageFilter > onRevalidateFilter()=0
static constexpr SkRect MakeEmpty()
Definition: SkRect.h:595

◆ onRevalidateFilter()

virtual sk_sp< SkImageFilter > sksg::ImageFilter::onRevalidateFilter ( )
protectedpure virtual

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