Flutter Engine
The Flutter Engine
|
#include <SkSGNode.h>
Classes | |
class | ScopedFlag |
Public Member Functions | |
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 |
Protected Types | |
enum | InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 } |
Protected Member Functions | |
Node (uint32_t invalTraits) | |
~Node () override | |
const SkRect & | bounds () const |
bool | hasInval () const |
virtual SkRect | onRevalidate (InvalidationController *, const SkMatrix &ctm)=0 |
void | observeInval (const sk_sp< Node > &) |
void | unobserveInval (const sk_sp< Node > &) |
Friends | |
class | NodePriv |
class | RenderNode |
Base class for all scene graph nodes.
Handles ingress edge management for the DAG (i.e. node -> "parent" node mapping), and invalidation.
Note: egress edges are only implemented/supported in container subclasses (e.g. Group, Effect, Draw).
Definition at line 33 of file SkSGNode.h.
|
protected |
Enumerator | |
---|---|
kBubbleDamage_Trait | |
kOverrideDamage_Trait |
Definition at line 43 of file SkSGNode.h.
|
explicitprotected |
Definition at line 45 of file SkSGNode.cpp.
|
overrideprotected |
Definition at line 52 of file SkSGNode.cpp.
|
inlineprotected |
Definition at line 55 of file SkSGNode.h.
|
inlineprotected |
Definition at line 60 of file SkSGNode.h.
void Node::invalidate | ( | bool | damage = true | ) |
Definition at line 113 of file SkSGNode.cpp.
Definition at line 61 of file SkSGNode.cpp.
|
protectedpure virtual |
Implemented in sksg::ColorFilter, sksg::GeometryEffect, sksg::Shader, sksg::ImageFilter, sksg::ClipEffect, sksg::Draw, sksg::EffectNode, sksg::Group, sksg::Image, sksg::MaskEffect, sksg::Merge, sksg::OpacityEffect, sksg::Color, sksg::ShaderPaint, sksg::Path, sksg::Plane, sksg::Rect, sksg::RRect, sksg::ShaderEffect, sksg::ImageFilterEffect, sksg::Text, sksg::Matrix< T >, sksg::Matrix< SkMatrix >, sksg::Matrix< SkM44 >, sksg::TransformEffect, and skottie::internal::TextAdapter::GlyphDecoratorNode.
const SkRect & Node::revalidate | ( | InvalidationController * | ic, |
const SkMatrix & | ctm | ||
) |
Definition at line 134 of file SkSGNode.cpp.
Definition at line 84 of file SkSGNode.cpp.
|
friend |
Definition at line 93 of file SkSGNode.h.
|
friend |
Definition at line 94 of file SkSGNode.h.
Node* sksg::Node::fInvalObserver |
Definition at line 84 of file SkSGNode.h.
std::vector<Node*>* sksg::Node::fInvalObserverArray |
Definition at line 85 of file SkSGNode.h.