Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
sksg::BlurImageFilter Class Referencefinal

#include <SkSGRenderEffect.h>

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

Public Member Functions

 ~BlurImageFilter () override
 
- Public Member Functions inherited from sksg::ImageFilter
 ~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
 

Static Public Member Functions

static sk_sp< BlurImageFilterMake ()
 

Protected Member Functions

sk_sp< SkImageFilteronRevalidateFilter () override
 
- Protected Member Functions inherited from sksg::ImageFilter
 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

SkBlurImageFilter node.

Definition at line 218 of file SkSGRenderEffect.h.

Constructor & Destructor Documentation

◆ ~BlurImageFilter()

sksg::BlurImageFilter::~BlurImageFilter ( )
overridedefault

Member Function Documentation

◆ Make()

sk_sp< BlurImageFilter > sksg::BlurImageFilter::Make ( )
static

Definition at line 184 of file SkSGRenderEffect.cpp.

184 {
185 return sk_sp<BlurImageFilter>(new BlurImageFilter());
186}

◆ onRevalidateFilter()

sk_sp< SkImageFilter > sksg::BlurImageFilter::onRevalidateFilter ( )
overrideprotectedvirtual

Implements sksg::ImageFilter.

Definition at line 193 of file SkSGRenderEffect.cpp.

193 {
194 // Tile modes other than kDecal require an explicit crop rect.
195 SkASSERT(fTileMode == SkTileMode::kDecal || this->getCropRect().has_value());
196 return SkImageFilters::Blur(fSigma.x(), fSigma.y(), fTileMode, nullptr, this->getCropRect());
197}
#define SkASSERT(cond)
Definition: SkAssert.h:116
static sk_sp< SkImageFilter > Blur(SkScalar sigmaX, SkScalar sigmaY, SkTileMode tileMode, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
constexpr float y() const
Definition: SkPoint_impl.h:187
constexpr float x() const
Definition: SkPoint_impl.h:181

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