15 if (
sigma_x < SK_ScalarNearlyZero &&
sigma_y < SK_ScalarNearlyZero) {
24 DlRect& output_bounds)
const {
25 output_bounds = input_bounds.
Expand(sigma_x_ * 3.0f, sigma_y_ * 3.0f);
26 return &output_bounds;
49 tile_mode_ == that->tile_mode_);
virtual T type() const =0
DlIRect * get_input_device_bounds(const DlIRect &output_bounds, const DlMatrix &ctm, DlIRect &input_bounds) const override
bool equals_(const DlImageFilter &other) const override
static std::shared_ptr< DlImageFilter > Make(DlScalar sigma_x, DlScalar sigma_y, DlTileMode tile_mode)
DlRect * map_local_bounds(const DlRect &input_bounds, DlRect &output_bounds) const override
DlTileMode tile_mode() const
DlIRect * map_device_bounds(const DlIRect &input_bounds, const DlMatrix &ctm, DlIRect &output_bounds) const override
static DlIRect * outset_device_bounds(const DlIRect &input_bounds, DlScalar radius_x, DlScalar radius_y, const DlMatrix &ctm, DlIRect &output_bounds)
#define FML_DCHECK(condition)
impeller::Scalar DlScalar
constexpr bool DlScalarNearlyEqual(DlScalar x, DlScalar y, DlScalar tolerance=kEhCloseEnough)
A 4x4 matrix using column-major storage.
constexpr TRect< T > Expand(T left, T top, T right, T bottom) const
Returns a rectangle with expanded edges. Negative expansion results in shrinking.