Flutter Engine
The Flutter Engine
|
#include <SkSGColorFilter.h>
Public Member Functions | |
~GradientColorFilter () override | |
Public Member Functions inherited from sksg::RenderNode | |
void | render (SkCanvas *, const RenderContext *=nullptr) const |
const RenderNode * | nodeAt (const SkPoint &point) const |
bool | isVisible () const |
void | setVisible (bool) |
Public Member Functions inherited from sksg::Node | |
const SkRect & | revalidate (InvalidationController *, const SkMatrix &) |
void | invalidate (bool damage=true) |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Static Public Member Functions | |
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 > >) |
Protected Member Functions | |
sk_sp< SkColorFilter > | onRevalidateFilter () override |
Protected Member Functions inherited from sksg::ColorFilter | |
ColorFilter (sk_sp< RenderNode >) | |
void | onRender (SkCanvas *, const RenderContext *) const final |
const RenderNode * | onNodeAt (const SkPoint &) const final |
SkRect | onRevalidate (InvalidationController *, const SkMatrix &) final |
Protected Member Functions inherited from sksg::EffectNode | |
EffectNode (sk_sp< RenderNode >, uint32_t inval_traits=0) | |
~EffectNode () override | |
void | onRender (SkCanvas *, const RenderContext *) const override |
const RenderNode * | onNodeAt (const SkPoint &) const override |
SkRect | onRevalidate (InvalidationController *, const SkMatrix &) override |
const sk_sp< RenderNode > & | getChild () const |
Protected Member Functions inherited from sksg::RenderNode | |
RenderNode (uint32_t inval_traits=0) | |
Protected Member Functions inherited from sksg::Node | |
Node (uint32_t invalTraits) | |
~Node () override | |
const SkRect & | bounds () const |
bool | hasInval () const |
void | observeInval (const sk_sp< Node > &) |
void | unobserveInval (const sk_sp< Node > &) |
Additional Inherited Members | |
Protected Types inherited from sksg::Node | |
enum | InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 } |
Tint/multi-tone color effect: maps RGB colors to the [C0,C1][C1,C2]..[Cn-1,Cn] gradient based on input luminance (where the colors are evenly distributed across the luminance domain), then mixes with the input based on weight. Leaves alpha unchanged.
Definition at line 102 of file SkSGColorFilter.h.
|
override |
Definition at line 109 of file SkSGColorFilter.cpp.
|
static |
Definition at line 89 of file SkSGColorFilter.cpp.
|
static |
Definition at line 94 of file SkSGColorFilter.cpp.
|
overrideprotectedvirtual |
Implements sksg::ColorFilter.
Definition at line 217 of file SkSGColorFilter.cpp.