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

#include <image_filter.h>

Inheritance diagram for impeller::BlurImageFilter:
impeller::ImageFilter

Public Member Functions

 BlurImageFilter (Sigma sigma_x, Sigma sigma_y, FilterContents::BlurStyle blur_style, Entity::TileMode tile_mode)
 
 ~BlurImageFilter () override
 
std::shared_ptr< FilterContentsWrapInput (const FilterInput::Ref &input) const override
 Wraps the given filter input with a GPU-based image filter. More...
 
std::shared_ptr< ImageFilterClone () const override
 
void Visit (ImageFilterVisitor &visitor) override
 
- Public Member Functions inherited from impeller::ImageFilter
 ImageFilter ()
 
virtual ~ImageFilter ()
 
std::shared_ptr< FilterContentsGetFilterContents () const
 Generate a new FilterContents using this filter's configuration. More...
 
virtual std::shared_ptr< FilterContentsWrapInput (const FilterInput::Ref &input) const =0
 Wraps the given filter input with a GPU-based image filter. More...
 
virtual std::shared_ptr< ImageFilterClone () const =0
 
virtual void Visit (ImageFilterVisitor &visitor)=0
 

Additional Inherited Members

- Static Public Member Functions inherited from impeller::ImageFilter
static std::shared_ptr< ImageFilterMakeBlur (Sigma sigma_x, Sigma sigma_y, FilterContents::BlurStyle blur_style, Entity::TileMode tile_mode)
 
static std::shared_ptr< ImageFilterMakeDilate (Radius radius_x, Radius radius_y)
 
static std::shared_ptr< ImageFilterMakeErode (Radius radius_x, Radius radius_y)
 
static std::shared_ptr< ImageFilterMakeMatrix (const Matrix &matrix, SamplerDescriptor sampler_descriptor)
 
static std::shared_ptr< ImageFilterMakeCompose (const ImageFilter &inner, const ImageFilter &outer)
 
static std::shared_ptr< ImageFilterMakeFromColorFilter (const ColorFilter &color_filter)
 
static std::shared_ptr< ImageFilterMakeLocalMatrix (const Matrix &matrix, const ImageFilter &internal_filter)
 

Detailed Description

Definition at line 96 of file image_filter.h.

Constructor & Destructor Documentation

◆ BlurImageFilter()

impeller::BlurImageFilter::BlurImageFilter ( Sigma  sigma_x,
Sigma  sigma_y,
FilterContents::BlurStyle  blur_style,
Entity::TileMode  tile_mode 
)

Definition at line 71 of file image_filter.cc.

75 : sigma_x_(sigma_x),
76 sigma_y_(sigma_y),
77 blur_style_(blur_style),
78 tile_mode_(tile_mode) {}

◆ ~BlurImageFilter()

impeller::BlurImageFilter::~BlurImageFilter ( )
overridedefault

Member Function Documentation

◆ Clone()

std::shared_ptr< ImageFilter > impeller::BlurImageFilter::Clone ( ) const
overridevirtual

Implements impeller::ImageFilter.

Definition at line 88 of file image_filter.cc.

88 {
89 return std::make_shared<BlurImageFilter>(*this);
90}

◆ Visit()

void impeller::BlurImageFilter::Visit ( ImageFilterVisitor visitor)
inlineoverridevirtual

Implements impeller::ImageFilter.

Definition at line 113 of file image_filter.h.

113{ visitor.Visit(*this); }

◆ WrapInput()

std::shared_ptr< FilterContents > impeller::BlurImageFilter::WrapInput ( const FilterInput::Ref input) const
overridevirtual

Wraps the given filter input with a GPU-based image filter.

Implements impeller::ImageFilter.

Definition at line 82 of file image_filter.cc.

83 {
84 return FilterContents::MakeGaussianBlur(input, sigma_x_, sigma_y_, tile_mode_,
85 blur_style_);
86}
static std::shared_ptr< FilterContents > MakeGaussianBlur(const FilterInput::Ref &input, Sigma sigma_x, Sigma sigma_y, Entity::TileMode tile_mode=Entity::TileMode::kDecal, BlurStyle mask_blur_style=BlurStyle::kNormal, const std::shared_ptr< Geometry > &mask_geometry=nullptr)

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