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

#include <dl_image_filter.h>

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

Public Member Functions

 DlDilateImageFilter (SkScalar radius_x, SkScalar radius_y)
 
 DlDilateImageFilter (const DlDilateImageFilter *filter)
 
 DlDilateImageFilter (const DlDilateImageFilter &filter)
 
std::shared_ptr< DlImageFiltershared () const override
 
DlImageFilterType type () const override
 
size_t size () const override
 
const DlDilateImageFilterasDilate () 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 294 of file dl_image_filter.h.

Constructor & Destructor Documentation

◆ DlDilateImageFilter() [1/3]

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

Definition at line 296 of file dl_image_filter.h.

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

◆ DlDilateImageFilter() [2/3]

flutter::DlDilateImageFilter::DlDilateImageFilter ( const DlDilateImageFilter filter)
inlineexplicit

Definition at line 298 of file dl_image_filter.h.

299 : DlDilateImageFilter(filter->radius_x_, filter->radius_y_) {}
DlDilateImageFilter(SkScalar radius_x, SkScalar radius_y)

◆ DlDilateImageFilter() [3/3]

flutter::DlDilateImageFilter::DlDilateImageFilter ( const DlDilateImageFilter filter)
inline

Definition at line 300 of file dl_image_filter.h.

301 : DlDilateImageFilter(&filter) {}

Member Function Documentation

◆ asDilate()

const DlDilateImageFilter * flutter::DlDilateImageFilter::asDilate ( ) const
inlineoverridevirtual

Reimplemented from flutter::DlImageFilter.

Definition at line 319 of file dl_image_filter.h.

319{ return this; }

◆ equals_()

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

Implements flutter::DlAttribute< DlImageFilter, DlImageFilterType >.

Definition at line 347 of file dl_image_filter.h.

347 {
348 FML_DCHECK(other.type() == DlImageFilterType::kDilate);
349 auto that = static_cast<const DlDilateImageFilter*>(&other);
350 return (radius_x_ == that->radius_x_ && radius_y_ == that->radius_y_);
351 }
#define FML_DCHECK(condition)
Definition: logging.h:103

◆ get_input_device_bounds()

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

Implements flutter::DlImageFilter.

Definition at line 336 of file dl_image_filter.h.

338 {
339 return inset_device_bounds(output_bounds, radius_x_, radius_y_, ctm,
340 input_bounds);
341 }
static SkIRect * inset_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::DlDilateImageFilter::Make ( SkScalar  radius_x,
SkScalar  radius_y 
)
inlinestatic

Definition at line 303 of file dl_image_filter.h.

304 {
307 return std::make_shared<DlDilateImageFilter>(radius_x, radius_y);
308 }
309 return nullptr;
310 }
#define SK_ScalarNearlyZero
Definition: SkScalar.h:99
SINT bool isfinite(const Vec< N, T > &v)
Definition: SkVx.h:1003

◆ map_device_bounds()

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

Implements flutter::DlImageFilter.

Definition at line 329 of file dl_image_filter.h.

331 {
332 return outset_device_bounds(input_bounds, radius_x_, radius_y_, ctm,
333 output_bounds);
334 }
static SkIRect * outset_device_bounds(const SkIRect &input_bounds, SkScalar radius_x, SkScalar radius_y, const SkMatrix &ctm, SkIRect &output_bounds)

◆ map_local_bounds()

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

Implements flutter::DlImageFilter.

Definition at line 323 of file dl_image_filter.h.

324 {
325 output_bounds = input_bounds.makeOutset(radius_x_, radius_y_);
326 return &output_bounds;
327 }
SkRect makeOutset(float dx, float dy) const
Definition: SkRect.h:1002

◆ modifies_transparent_black()

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

Implements flutter::DlImageFilter.

Definition at line 321 of file dl_image_filter.h.

321{ return false; }

◆ radius_x()

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

Definition at line 343 of file dl_image_filter.h.

343{ return radius_x_; }

◆ radius_y()

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

Definition at line 344 of file dl_image_filter.h.

344{ return radius_y_; }

◆ shared()

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

Implements flutter::DlAttribute< DlImageFilter, DlImageFilterType >.

Definition at line 312 of file dl_image_filter.h.

312 {
313 return std::make_shared<DlDilateImageFilter>(this);
314 }

◆ size()

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

Implements flutter::DlAttribute< DlImageFilter, DlImageFilterType >.

Definition at line 317 of file dl_image_filter.h.

317{ return sizeof(*this); }

◆ type()

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

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