8 #ifndef SkImageSource_DEFINED
9 #define SkImageSource_DEFINED
12 #include "SkImageFilter.h"
20 SkFilterQuality filterQuality);
22 SkRect computeFastBounds(
const SkRect& src)
const override;
24 SK_TO_STRING_OVERRIDE()
25 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(
SkImageSource)
27 #ifdef SK_SUPPORT_LEGACY_IMAGEFILTER_PTR
29 return Make(sk_ref_sp<SkImage>(image)).
release();
34 SkFilterQuality filterQuality) {
35 return Make(sk_ref_sp<SkImage>(image), srcRect, dstRect, filterQuality).
release();
54 SkFilterQuality fFilterQuality;
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...
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: SkImageSource.h:14
Definition: SkWriteBuffer.h:26
Definition: SkImageFilter.h:37
SkImage is an abstraction for drawing a rectagle of pixels, though the particular type of image could...
Definition: SkImage.h:45
SkIPoint holds two 32 bit integer coordinates.
Definition: SkPoint.h:40