8 #ifndef SkSGColorFilter_DEFINED
9 #define SkSGColorFilter_DEFINED
112 const std::vector<sk_sp<Color>> fColors;
SkBlendMode
Blends are operators that take in two colors (source, destination) and return a new color.
Definition: SkBlendMode.h:38
#define SG_ATTRIBUTE(attr_name, attr_type, attr_container)
Definition: SkSGNode.h:99
SkCanvas provides an interface for drawing, and how the drawing is clipped and transformed.
Definition: SkCanvas.h:99
ColorFilters are optional objects in the drawing pipeline.
Definition: SkColorFilter.h:35
SkMatrix holds a 3x3 matrix for transforming coordinates.
Definition: SkMatrix.h:53
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:220
Base class for nodes which apply a color filter when rendering their descendants.
Definition: SkSGColorFilter.h:26
const RenderNode * onNodeAt(const SkPoint &) const final
virtual sk_sp< SkColorFilter > onRevalidateFilter()=0
ColorFilter(sk_sp< RenderNode >)
SkRect onRevalidate(InvalidationController *, const SkMatrix &) final
void onRender(SkCanvas *, const RenderContext *) const final
Base class for nodes which apply some transformation when rendering their descendants.
Definition: SkSGEffectNode.h:21
EffectNode(sk_sp< RenderNode >, uint32_t inval_traits=0)
Wrapper for externally-managed SkColorFilters.
Definition: SkSGColorFilter.h:48
~ExternalColorFilter() override
static sk_sp< ExternalColorFilter > Make(sk_sp< RenderNode > child)
void onRender(SkCanvas *, const RenderContext *) const override
Tint/multi-tone color effect: maps RGB colors to the [C0,C1][C1,C2]..[Cn-1,Cn] gradient based on inpu...
Definition: SkSGColorFilter.h:95
static sk_sp< GradientColorFilter > Make(sk_sp< RenderNode > child, sk_sp< Color > c0, sk_sp< Color > c1)
static sk_sp< GradientColorFilter > Make(sk_sp< RenderNode > child, std::vector< sk_sp< Color >>)
sk_sp< SkColorFilter > onRevalidateFilter() override
~GradientColorFilter() override
Receiver for invalidation events.
Definition: SkSGInvalidationController.h:25
Concrete SkBlendModeColorFilter Effect node.
Definition: SkSGColorFilter.h:70
~ModeColorFilter() override
sk_sp< SkColorFilter > onRevalidateFilter() override
static sk_sp< ModeColorFilter > Make(sk_sp< RenderNode > child, sk_sp< Color > color, SkBlendMode mode)
Base class for nodes which can render to a canvas.
Definition: SkSGRenderNode.h:27
SK_API sk_sp< SkShader > Color(SkColor)
SkRect holds four float coordinates describing the upper and lower bounds of a rectangle.
Definition: SkRect.h:582
Definition: SkSGRenderNode.h:53