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

#include <dl_image_filter.h>

Inheritance diagram for flutter::DlErodeImageFilter:
flutter::DlImageFilter flutter::DlAttribute< DlImageFilter, DlImageFilterType >

Public Member Functions

 DlErodeImageFilter (SkScalar radius_x, SkScalar radius_y)
 
 DlErodeImageFilter (const DlErodeImageFilter *filter)
 
 DlErodeImageFilter (const DlErodeImageFilter &filter)
 
std::shared_ptr< DlImageFiltershared () const override
 
DlImageFilterType type () const override
 
size_t size () const override
 
const DlErodeImageFilterasErode () const override
 
bool modifies_transparent_black () const override
 
SkRectmap_local_bounds (const SkRect &input_bounds, SkRect &output_bounds) const override
 
SkIRectmap_device_bounds (const SkIRect &input_bounds, const SkMatrix &ctm, SkIRect &output_bounds) const override
 
SkIRectget_input_device_bounds (const SkIRect &output_bounds, const SkMatrix &ctm, SkIRect &input_bounds) const override
 
SkScalar radius_x () const
 
SkScalar radius_y () const
 
- Public Member Functions inherited from flutter::DlImageFilter
virtual const DlBlurImageFilterasBlur () const
 
virtual const DlDilateImageFilterasDilate () const
 
virtual const DlErodeImageFilterasErode () const
 
virtual const DlMatrixImageFilterasMatrix () const
 
virtual const DlLocalMatrixImageFilterasLocalMatrix () const
 
virtual std::shared_ptr< DlImageFiltermakeWithLocalMatrix (const SkMatrix &matrix) const
 
virtual const DlComposeImageFilterasCompose () const
 
virtual const DlColorFilterImageFilterasColorFilter () const
 
virtual bool modifies_transparent_black () const =0
 
virtual SkRectmap_local_bounds (const SkRect &input_bounds, SkRect &output_bounds) const =0
 
virtual SkIRectmap_device_bounds (const SkIRect &input_bounds, const SkMatrix &ctm, SkIRect &output_bounds) const =0
 
virtual SkIRectget_input_device_bounds (const SkIRect &output_bounds, const SkMatrix &ctm, SkIRect &input_bounds) const =0
 
virtual MatrixCapability matrix_capability () const
 
- Public Member Functions inherited from flutter::DlAttribute< DlImageFilter, DlImageFilterType >
virtual DlImageFilterType type () const=0
 
virtual size_t size () const=0
 
virtual std::shared_ptr< DlImageFiltershared () const=0
 
bool operator== (DlImageFilter const &other) const
 
bool operator!= (DlImageFilter const &other) const
 
virtual ~DlAttribute ()=default
 

Static Public Member Functions

static std::shared_ptr< DlImageFilterMake (SkScalar radius_x, SkScalar radius_y)
 

Protected Member Functions

bool equals_ (const DlImageFilter &other) const override
 
virtual bool equals_ (DlImageFilter const &other) const=0
 

Additional Inherited Members

- Public Types inherited from flutter::DlImageFilter
enum class  MatrixCapability { kTranslate , kScaleTranslate , kComplex }
 
- Static Protected Member Functions inherited from flutter::DlImageFilter
static SkVector map_vectors_affine (const SkMatrix &ctm, SkScalar x, SkScalar y)
 
static SkIRectinset_device_bounds (const SkIRect &input_bounds, SkScalar radius_x, SkScalar radius_y, const SkMatrix &ctm, SkIRect &output_bounds)
 
static SkIRectoutset_device_bounds (const SkIRect &input_bounds, SkScalar radius_x, SkScalar radius_y, const SkMatrix &ctm, SkIRect &output_bounds)
 

Detailed Description

Definition at line 358 of file dl_image_filter.h.

Constructor & Destructor Documentation

◆ DlErodeImageFilter() [1/3]

flutter::DlErodeImageFilter::DlErodeImageFilter ( SkScalar  radius_x,
SkScalar  radius_y 
)
inline

Definition at line 360 of file dl_image_filter.h.

361 : radius_x_(radius_x), radius_y_(radius_y) {}

◆ DlErodeImageFilter() [2/3]

flutter::DlErodeImageFilter::DlErodeImageFilter ( const DlErodeImageFilter filter)
inlineexplicit

Definition at line 362 of file dl_image_filter.h.

363 : DlErodeImageFilter(filter->radius_x_, filter->radius_y_) {}
DlErodeImageFilter(SkScalar radius_x, SkScalar radius_y)

◆ DlErodeImageFilter() [3/3]

flutter::DlErodeImageFilter::DlErodeImageFilter ( const DlErodeImageFilter filter)
inline

Definition at line 364 of file dl_image_filter.h.

365 : DlErodeImageFilter(&filter) {}

Member Function Documentation

◆ asErode()

const DlErodeImageFilter * flutter::DlErodeImageFilter::asErode ( ) const
inlineoverridevirtual

Reimplemented from flutter::DlImageFilter.

Definition at line 383 of file dl_image_filter.h.

383{ return this; }

◆ equals_()

bool flutter::DlErodeImageFilter::equals_ ( const DlImageFilter other) const
inlineoverrideprotectedvirtual

Implements flutter::DlAttribute< DlImageFilter, DlImageFilterType >.

Definition at line 411 of file dl_image_filter.h.

411 {
412 FML_DCHECK(other.type() == DlImageFilterType::kErode);
413 auto that = static_cast<const DlErodeImageFilter*>(&other);
414 return (radius_x_ == that->radius_x_ && radius_y_ == that->radius_y_);
415 }
#define FML_DCHECK(condition)
Definition: logging.h:103

◆ get_input_device_bounds()

SkIRect * flutter::DlErodeImageFilter::get_input_device_bounds ( const SkIRect output_bounds,
const SkMatrix ctm,
SkIRect input_bounds 
) const
inlineoverridevirtual

Implements flutter::DlImageFilter.

Definition at line 400 of file dl_image_filter.h.

402 {
403 return outset_device_bounds(output_bounds, radius_x_, radius_y_, ctm,
404 input_bounds);
405 }
static SkIRect * outset_device_bounds(const SkIRect &input_bounds, SkScalar radius_x, SkScalar radius_y, const SkMatrix &ctm, SkIRect &output_bounds)

◆ Make()

static std::shared_ptr< DlImageFilter > flutter::DlErodeImageFilter::Make ( SkScalar  radius_x,
SkScalar  radius_y 
)
inlinestatic

Definition at line 367 of file dl_image_filter.h.

368 {
371 return std::make_shared<DlErodeImageFilter>(radius_x, radius_y);
372 }
373 return nullptr;
374 }
#define SK_ScalarNearlyZero
Definition: SkScalar.h:99
SINT bool isfinite(const Vec< N, T > &v)
Definition: SkVx.h:1003

◆ map_device_bounds()

SkIRect * flutter::DlErodeImageFilter::map_device_bounds ( const SkIRect input_bounds,
const SkMatrix ctm,
SkIRect output_bounds 
) const
inlineoverridevirtual

Implements flutter::DlImageFilter.

Definition at line 393 of file dl_image_filter.h.

395 {
396 return inset_device_bounds(input_bounds, radius_x_, radius_y_, ctm,
397 output_bounds);
398 }
static SkIRect * inset_device_bounds(const SkIRect &input_bounds, SkScalar radius_x, SkScalar radius_y, const SkMatrix &ctm, SkIRect &output_bounds)

◆ map_local_bounds()

SkRect * flutter::DlErodeImageFilter::map_local_bounds ( const SkRect input_bounds,
SkRect output_bounds 
) const
inlineoverridevirtual

Implements flutter::DlImageFilter.

Definition at line 387 of file dl_image_filter.h.

388 {
389 output_bounds = input_bounds.makeInset(radius_x_, radius_y_);
390 return &output_bounds;
391 }
SkRect makeInset(float dx, float dy) const
Definition: SkRect.h:987

◆ modifies_transparent_black()

bool flutter::DlErodeImageFilter::modifies_transparent_black ( ) const
inlineoverridevirtual

Implements flutter::DlImageFilter.

Definition at line 385 of file dl_image_filter.h.

385{ return false; }

◆ radius_x()

SkScalar flutter::DlErodeImageFilter::radius_x ( ) const
inline

Definition at line 407 of file dl_image_filter.h.

407{ return radius_x_; }

◆ radius_y()

SkScalar flutter::DlErodeImageFilter::radius_y ( ) const
inline

Definition at line 408 of file dl_image_filter.h.

408{ return radius_y_; }

◆ shared()

std::shared_ptr< DlImageFilter > flutter::DlErodeImageFilter::shared ( ) const
inlineoverridevirtual

Implements flutter::DlAttribute< DlImageFilter, DlImageFilterType >.

Definition at line 376 of file dl_image_filter.h.

376 {
377 return std::make_shared<DlErodeImageFilter>(this);
378 }

◆ size()

size_t flutter::DlErodeImageFilter::size ( ) const
inlineoverridevirtual

Implements flutter::DlAttribute< DlImageFilter, DlImageFilterType >.

Definition at line 381 of file dl_image_filter.h.

381{ return sizeof(*this); }

◆ type()

DlImageFilterType flutter::DlErodeImageFilter::type ( ) const
inlineoverridevirtual

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