Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
impeller::ColorImageFilter Class Reference

#include <image_filter.h>

Inheritance diagram for impeller::ColorImageFilter:
impeller::ImageFilter

Public Member Functions

 ColorImageFilter (const ColorFilter &color_filter)
 
 ~ColorImageFilter () override
 
std::shared_ptr< FilterContentsWrapInput (const FilterInput::Ref &input) const override
 Wraps the given filter input with a GPU-based image filter.
 
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.
 

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 228 of file image_filter.h.

Constructor & Destructor Documentation

◆ ColorImageFilter()

impeller::ColorImageFilter::ColorImageFilter ( const ColorFilter color_filter)
explicit

Definition at line 172 of file image_filter.cc.

173 : color_filter_(color_filter.Clone()) {}
static sk_sp< SkImage > color_filter(const SkImage *image, SkColorFilter *colorFilter)

◆ ~ColorImageFilter()

impeller::ColorImageFilter::~ColorImageFilter ( )
overridedefault

Member Function Documentation

◆ Clone()

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

Implements impeller::ImageFilter.

Definition at line 183 of file image_filter.cc.

183 {
184 return std::make_shared<ColorImageFilter>(*this);
185}

◆ Visit()

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

Implements impeller::ImageFilter.

Definition at line 242 of file image_filter.h.

242{ visitor.Visit(*this); }

◆ WrapInput()

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

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

Implements impeller::ImageFilter.

Definition at line 177 of file image_filter.cc.

178 {
179 return color_filter_->WrapWithGPUColorFilter(
181}

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