8 #ifndef SkTileImageFilter_DEFINED
9 #define SkTileImageFilter_DEFINED
11 #include "SkImageFilter.h"
26 SkRect computeFastBounds(
const SkRect& src)
const override;
28 SK_TO_STRING_OVERRIDE()
31 #ifdef SK_SUPPORT_LEGACY_IMAGEFILTER_PTR
33 return Make(src, dst, sk_ref_sp<SkImageFilter>(input)).
release();
45 :
INHERITED(&input, 1,
nullptr), fSrcRect(srcRect), fDstRect(dstRect) {}
T *SK_WARN_UNUSED_RESULT release()
Return the bare pointer, and set the internal object pointer to nullptr.
Definition: SkRefCnt.h:363
void flatten(SkWriteBuffer &) const override
Override this if your subclass needs to record data that it will need to recreate itself from its Cre...
The SkMatrix class holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:26
virtual sk_sp< SkSpecialImage > onFilterImage(SkSpecialImage *src, const Context &, SkIPoint *offset) const =0
This is the virtual which should be overridden by the derived class to perform image filtering...
Definition: SkRefCnt.h:135
Base class for image filters.
Definition: SkImageFilter.h:35
Definition: SkTileImageFilter.h:13
Definition: SkWriteBuffer.h:26
virtual SkIRect onFilterNodeBounds(const SkIRect &, const SkMatrix &, MapDirection) const
Performs a forwards or reverse mapping of the given rect to accommodate this filter's margin requirem...
virtual SkIRect onFilterBounds(const SkIRect &, const SkMatrix &, MapDirection) const
This function recurses into its inputs with the given rect (first argument), calls filterBounds() wit...
Definition: SkImageFilter.h:37
SkIRect holds four 32 bit integer coordinates for a rectangle.
Definition: SkRect.h:20
SkIPoint holds two 32 bit integer coordinates.
Definition: SkPoint.h:40