8 #ifndef SkXfermodeImageFilter_DEFINED
9 #define SkXfermodeImageFilter_DEFINED
11 #include "SkImageFilter.h"
27 return Make(std::move(mode), std::move(background),
nullptr,
nullptr);
30 #ifdef SK_SUPPORT_LEGACY_XFERMODE_PTR
34 return Make(sk_ref_sp(mode),
35 sk_ref_sp(background),
36 sk_ref_sp(foreground),
40 #ifdef SK_SUPPORT_LEGACY_IMAGEFILTER_PTR
43 return Make(std::move(mode),
44 sk_ref_sp(background),
45 sk_ref_sp(foreground),
49 return Make(std::move(mode), sk_ref_sp(background));
53 SK_TO_STRING_OVERRIDE()
T *SK_WARN_UNUSED_RESULT release()
Return the bare pointer, and set the internal object pointer to nullptr.
Definition: SkRefCnt.h:363
Definition: SkImageFilter.h:55
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
SkXfermode is the base class for objects that are called to implement custom "transfer-modes" in the ...
Definition: SkXfermode.h:34
The SkBitmap class specifies a raster bitmap.
Definition: SkBitmap.h:41
Base class for image filters.
Definition: SkImageFilter.h:35
Definition: SkWriteBuffer.h:26
Definition: SkXfermodeImageFilter.h:16
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