#include <SkSGRenderEffect.h>
Attaches an ImageFilter (chain) to the render DAG.
Definition at line 136 of file SkSGRenderEffect.h.
◆ Cropping
◆ ~ImageFilterEffect()
sksg::ImageFilterEffect::~ImageFilterEffect |
( |
| ) |
|
|
override |
◆ Make()
◆ onNodeAt()
Reimplemented from sksg::EffectNode.
Definition at line 135 of file SkSGRenderEffect.cpp.
135 {
136
137
139 return this;
140}
static bool contains(const SkRect &r, SkPoint p)
const SkRect & bounds() const
constexpr float x() const
◆ onRender()
Reimplemented from sksg::EffectNode.
Definition at line 142 of file SkSGRenderEffect.cpp.
142 {
143
144 const auto filter_ctx =
145 ScopedRenderContext(canvas, ctx).setFilterIsolation(this->
getChild()->
bounds(),
147 fImageFilter->getFilter());
149}
SkMatrix getTotalMatrix() const
const sk_sp< RenderNode > & getChild() const
void onRender(SkCanvas *, const RenderContext *) const override
◆ onRevalidate()
Reimplemented from sksg::EffectNode.
Definition at line 113 of file SkSGRenderEffect.cpp.
113 {
115
117 fImageFilter->setCropRect(content_bounds);
118 } else {
119 fImageFilter->setCropRect(std::nullopt);
120 }
121
122
123 fImageFilter->revalidate(ic, ctm);
124
125 const auto& filter = fImageFilter->getFilter();
126
127
128
129
130
131 return filter ? filter->computeFastBounds(content_bounds)
132 : content_bounds;
133}
SkRect onRevalidate(InvalidationController *, const SkMatrix &) override
The documentation for this class was generated from the following files: