25 auto res = fml::MakeRefCounted<ImageFilter>();
26 res->AssociateWithDartWrapper(wrapper);
37 if (filterQualityIndex < 0) {
39 }
else if (
static_cast<size_t>(filterQualityIndex) >=
48 if (filterQualityIndex <= 0) {
54ImageFilter::ImageFilter() {}
60 if (is_dynamic_tile_mode_) {
74 int tile_mode_index) {
77 if (tile_mode_index < 0) {
82 tile_mode =
static_cast<DlTileMode>(tile_mode_index);
88 is_dynamic_tile_mode_ = is_dynamic && filter_;
92 is_dynamic_tile_mode_ =
false;
98 is_dynamic_tile_mode_ =
false;
104 int filterQualityIndex) {
105 is_dynamic_tile_mode_ =
false;
112 is_dynamic_tile_mode_ =
false;
118 is_dynamic_tile_mode_ =
false;
129 return a->filter_ == b->filter_;
const std::shared_ptr< const DlColorFilter > filter() const
static std::shared_ptr< DlImageFilter > Make(DlScalar sigma_x, DlScalar sigma_y, DlTileMode tile_mode)
DlTileMode tile_mode() const
static std::shared_ptr< DlImageFilter > Make(const std::shared_ptr< const DlColorFilter > &filter)
static std::shared_ptr< DlImageFilter > Make(const std::shared_ptr< DlImageFilter > &outer, const std::shared_ptr< DlImageFilter > &inner)
static std::shared_ptr< DlImageFilter > Make(DlScalar radius_x, DlScalar radius_y)
static std::shared_ptr< DlImageFilter > Make(DlScalar radius_x, DlScalar radius_y)
static std::shared_ptr< DlImageFilter > Make(const DlMatrix &matrix, DlImageSampling sampling)
void initMatrix(const tonic::Float64List &matrix4, int filter_quality_index)
void initComposeFilter(ImageFilter *outer, ImageFilter *inner)
void initColorFilter(ColorFilter *colorFilter)
void initErode(double radius_x, double radius_y)
void initBlur(double sigma_x, double sigma_y, int tile_mode_index)
static void Create(Dart_Handle wrapper)
void initShader(ReusableFragmentShader *shader)
void initDilate(double radius_x, double radius_y)
static bool equals(ImageFilter *a, ImageFilter *b)
static DlImageSampling SamplingFromIndex(int filterQualityIndex)
static DlFilterMode FilterModeFromIndex(int index)
const std::shared_ptr< DlImageFilter > filter(DlTileMode mode) const
std::shared_ptr< DlImageFilter > as_image_filter() const
static void ThrowIfUIOperationsProhibited()
#define IMPLEMENT_WRAPPERTYPEINFO(LibraryName, ClassName)
#define FML_DCHECK(condition)
static float SafeNarrow(double value)
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive mode
DlMatrix ToDlMatrix(const SkMatrix &matrix)
static const std::array< DlImageSampling, 4 > kFilterQualities