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_) {
79 double bounds_bottom) {
82 if (tile_mode_index < 0) {
87 tile_mode =
static_cast<DlTileMode>(tile_mode_index);
89 std::optional<DlRect> bounds;
99 is_dynamic_tile_mode_ = is_dynamic && filter_;
103 is_dynamic_tile_mode_ =
false;
109 is_dynamic_tile_mode_ =
false;
115 int filterQualityIndex) {
116 is_dynamic_tile_mode_ =
false;
123 is_dynamic_tile_mode_ =
false;
129 is_dynamic_tile_mode_ =
false;
140 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, std::optional< DlRect > bounds=std::nullopt)
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 initBlur(double sigma_x, double sigma_y, int tile_mode_index, bool bounded, double bounds_left, double bounds_top, double bounds_right, double bounds_bottom)
void initComposeFilter(ImageFilter *outer, ImageFilter *inner)
void initColorFilter(ColorFilter *colorFilter)
void initErode(double radius_x, double radius_y)
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
static constexpr TRect MakeLTRB(Type left, Type top, Type right, Type bottom)