#include <image_filter.h>
Public Member Functions | |
ImageFilter () | |
virtual | ~ImageFilter () |
std::shared_ptr< FilterContents > | GetFilterContents () const |
Generate a new FilterContents using this filter's configuration. More... | |
virtual std::shared_ptr< FilterContents > | WrapInput (const FilterInput::Ref &input) const =0 |
Wraps the given filter input with a GPU-based image filter. More... | |
virtual std::shared_ptr< ImageFilter > | Clone () const =0 |
virtual void | Visit (ImageFilterVisitor &visitor)=0 |
Static Public Member Functions | |
static std::shared_ptr< ImageFilter > | MakeBlur (Sigma sigma_x, Sigma sigma_y, FilterContents::BlurStyle blur_style, Entity::TileMode tile_mode) |
static std::shared_ptr< ImageFilter > | MakeDilate (Radius radius_x, Radius radius_y) |
static std::shared_ptr< ImageFilter > | MakeErode (Radius radius_x, Radius radius_y) |
static std::shared_ptr< ImageFilter > | MakeMatrix (const Matrix &matrix, SamplerDescriptor sampler_descriptor) |
static std::shared_ptr< ImageFilter > | MakeCompose (const ImageFilter &inner, const ImageFilter &outer) |
static std::shared_ptr< ImageFilter > | MakeFromColorFilter (const ColorFilter &color_filter) |
static std::shared_ptr< ImageFilter > | MakeLocalMatrix (const Matrix &matrix, const ImageFilter &internal_filter) |
Definition at line 42 of file image_filter.h.
|
default |
|
virtualdefault |
|
pure virtual |
std::shared_ptr< FilterContents > impeller::ImageFilter::GetFilterContents | ( | ) | const |
Generate a new FilterContents using this filter's configuration.
This is the same as WrapInput, except no input is set. The input for the filter chain can be set later using. FilterContents::SetLeafInputs().
FilterContents::SetLeafInputs
Definition at line 63 of file image_filter.cc.
References impeller::FilterInput::Make(), and WrapInput().
|
static |
Definition at line 20 of file image_filter.cc.
Referenced by impeller::testing::TEST(), impeller::testing::TEST_P(), and impeller::ToImageFilter().
|
static |
Definition at line 46 of file image_filter.cc.
Referenced by impeller::testing::TEST_P(), and impeller::ToImageFilter().
|
static |
Definition at line 29 of file image_filter.cc.
Referenced by impeller::testing::TEST_P(), and impeller::ToImageFilter().
|
static |
Definition at line 34 of file image_filter.cc.
Referenced by impeller::testing::TEST_P(), and impeller::ToImageFilter().
|
static |
Definition at line 52 of file image_filter.cc.
Referenced by impeller::testing::TEST_P(), and impeller::ToImageFilter().
|
static |
Definition at line 57 of file image_filter.cc.
Referenced by impeller::testing::TEST_P(), and impeller::ToImageFilter().
|
static |
Definition at line 39 of file image_filter.cc.
Referenced by impeller::testing::TEST_P(), and impeller::ToImageFilter().
|
pure virtual |
|
pure virtual |
Wraps the given filter input with a GPU-based image filter.
Implemented in impeller::LocalMatrixImageFilter, impeller::ColorImageFilter, impeller::ComposeImageFilter, impeller::MatrixImageFilter, impeller::ErodeImageFilter, impeller::DilateImageFilter, and impeller::BlurImageFilter.
Referenced by GetFilterContents().