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

#include <image_filter.h>

Inheritance diagram for impeller::MatrixImageFilter:
impeller::ImageFilter

Public Member Functions

 MatrixImageFilter (const Matrix &matrix, SamplerDescriptor sampler_descriptor)
 
 ~MatrixImageFilter () 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
 
const MatrixGetMatrix () const
 
- 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 176 of file image_filter.h.

Constructor & Destructor Documentation

◆ MatrixImageFilter()

impeller::MatrixImageFilter::MatrixImageFilter ( const Matrix matrix,
SamplerDescriptor  sampler_descriptor 
)

Definition at line 134 of file image_filter.cc.

136 : matrix_(matrix), sampler_descriptor_(std::move(sampler_descriptor)) {}
unsigned useCenter Optional< SkMatrix > matrix
Definition: SkRecords.h:258

◆ ~MatrixImageFilter()

impeller::MatrixImageFilter::~MatrixImageFilter ( )
overridedefault

Member Function Documentation

◆ Clone()

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

Implements impeller::ImageFilter.

Definition at line 145 of file image_filter.cc.

145 {
146 return std::make_shared<MatrixImageFilter>(*this);
147}

◆ GetMatrix()

const Matrix & impeller::MatrixImageFilter::GetMatrix ( ) const
inline

Definition at line 192 of file image_filter.h.

192{ return matrix_; }

◆ Visit()

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

Implements impeller::ImageFilter.

Definition at line 190 of file image_filter.h.

190{ visitor.Visit(*this); }

◆ WrapInput()

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

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

Implements impeller::ImageFilter.

Definition at line 140 of file image_filter.cc.

141 {
142 return FilterContents::MakeMatrixFilter(input, matrix_, sampler_descriptor_);
143}
static std::shared_ptr< FilterContents > MakeMatrixFilter(FilterInput::Ref input, const Matrix &matrix, const SamplerDescriptor &desc)

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