#include <SkSGTransform.h>
Concrete Effect node, binding a Transform to a RenderNode.
Definition at line 95 of file SkSGTransform.h.
◆ ~TransformEffect()
sksg::TransformEffect::~TransformEffect |
( |
| ) |
|
|
override |
Definition at line 176 of file SkSGTransform.cpp.
176 {
178}
void unobserveInval(const sk_sp< Node > &)
◆ getTransform()
const sk_sp< Transform > & sksg::TransformEffect::getTransform |
( |
| ) |
const |
|
inline |
◆ Make() [1/2]
Definition at line 103 of file SkSGTransform.h.
103 {
105 }
static sk_sp< Matrix > Make(const SkMatrix &m)
◆ Make() [2/2]
Definition at line 97 of file SkSGTransform.h.
97 {
100 : nullptr;
101 }
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)
◆ onNodeAt()
Reimplemented from sksg::EffectNode.
Definition at line 187 of file SkSGTransform.cpp.
187 {
188 const auto p4 = TransformPriv::As<SkM44>(fTransform).map(
p.fX,
p.fY, 0, 0);
189
191}
const RenderNode * onNodeAt(const SkPoint &) const override
◆ onRender()
Reimplemented from sksg::EffectNode.
Definition at line 180 of file SkSGTransform.cpp.
180 {
182 canvas->
concat(TransformPriv::As<SkM44>(fTransform));
183
185}
void concat(const SkMatrix &matrix)
void onRender(SkCanvas *, const RenderContext *) const override
◆ onRevalidate()
Reimplemented from sksg::EffectNode.
Definition at line 193 of file SkSGTransform.cpp.
193 {
195
196
197 fTransform->revalidate(ic, ctm);
198
199
200 const auto m = TransformPriv::As<SkMatrix>(fTransform);
203
205}
static SkMatrix Concat(const SkMatrix &a, const SkMatrix &b)
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
const SkRect & bounds() const
The documentation for this class was generated from the following files: