Skia
2D Graphics Library
|
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. More...
#include <SkSGColorFilter.h>
Public Member Functions | |
~GradientColorFilter () override | |
void | render (SkCanvas *, const RenderContext *=nullptr) const |
const RenderNode * | nodeAt (const SkPoint &point) const |
bool | isVisible () const |
void | setVisible (bool) |
const SkRect & | revalidate (InvalidationController *, const SkMatrix &) |
void | invalidate (bool damage=true) |
bool | unique () const |
May return true if the caller is the only owner. More... | |
void | ref () const |
Increment the reference count. More... | |
void | unref () const |
Decrement the reference count. More... | |
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 Types | |
enum | InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 } |
Protected Member Functions | |
sk_sp< SkColorFilter > | onRevalidateFilter () override |
void | onRender (SkCanvas *, const RenderContext *) const final |
const RenderNode * | onNodeAt (const SkPoint &) const final |
SkRect | onRevalidate (InvalidationController *, const SkMatrix &) final |
const sk_sp< RenderNode > & | getChild () const |
const SkRect & | bounds () const |
bool | hasInval () const |
void | observeInval (const sk_sp< Node > &) |
void | unobserveInval (const sk_sp< Node > &) |
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.
|
protectedinherited |
|
override |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inherited |
|
inherited |
|
static |
|
static |
|
inherited |
|
finalprotectedvirtualinherited |
Implements sksg::RenderNode.
|
finalprotectedvirtualinherited |
Implements sksg::RenderNode.
|
finalprotectedvirtualinherited |
Implements sksg::Node.
|
overrideprotectedvirtual |
Implements sksg::ColorFilter.
|
inlineinherited |
Increment the reference count.
Must be balanced by a call to unref().
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
May return true if the caller is the only owner.
Ensures that all previous owner's actions are complete.
|
inlineinherited |
Decrement the reference count.
If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.
|
inherited |
|
inherited |