5#ifndef FLUTTER_DISPLAY_LIST_EFFECTS_DL_MASK_FILTER_H_
6#define FLUTTER_DISPLAY_LIST_EFFECTS_DL_MASK_FILTER_H_
8#include "flutter/display_list/dl_attributes.h"
9#include "flutter/fml/logging.h"
15class DlBlurMaskFilter;
46 : style_(
style), sigma_(
sigma), respect_ctm_(respect_ctm) {}
55 bool respect_ctm =
true) {
57 return std::make_shared<DlBlurMaskFilter>(
style,
sigma, respect_ctm);
63 size_t size()
const override {
return sizeof(*this); }
65 std::shared_ptr<DlMaskFilter>
shared()
const override {
66 return std::make_shared<DlBlurMaskFilter>(
this);
79 return style_ == that->style_ && sigma_ == that->sigma_ &&
80 respect_ctm_ == that->respect_ctm_;
@ kNormal
glyph outlines modified to improve constrast
virtual T type() const =0
DlBlurMaskFilter(const DlBlurMaskFilter *filter)
static std::shared_ptr< DlMaskFilter > Make(DlBlurStyle style, SkScalar sigma, bool respect_ctm=true)
DlBlurMaskFilter(const DlBlurMaskFilter &filter)
bool equals_(DlMaskFilter const &other) const override
const DlBlurMaskFilter * asBlur() const override
DlMaskFilterType type() const override
DlBlurStyle style() const
std::shared_ptr< DlMaskFilter > shared() const override
DlBlurMaskFilter(DlBlurStyle style, SkScalar sigma, bool respect_ctm=true)
size_t size() const override
virtual const DlBlurMaskFilter * asBlur() const
#define FML_DCHECK(condition)
@ kOuter
nothing inside, fuzzy outside
@ kInner
fuzzy inside, nothing outside
SINT bool isfinite(const Vec< N, T > &v)