Inherits impeller::Canvas::BlurShape.
Definition at line 279 of file canvas.cc.
◆ PathBlurShape()
Construct a PathBlurShape from a path source, a set of shadow vertices (typically produced by ShadowPathGeometry) and the sigma that was used to generate the vertex mesh.
The sigma was already used to generate the shadow vertices, so it is provided here only to make sure it matches the sigma we will see in our BuildBlurContent method.
The source was used to generate the mesh and it might be used again for the SOLID mask operation so we save it here in case the mask rendering code calls our BuildDrawGeometry method. Its lifetime must survive the lifetime of this object, typically because the source object was stack allocated not long before this object is also being stack allocated.
Definition at line 295 of file canvas.cc.
298 : sigma_(sigma),
299 source_(source),
300 shadow_vertices_(std::move(shadow_vertices)) {}
◆ BuildBlurContent()
◆ BuildDrawGeometry()
| const Geometry & impeller::Canvas::PathBlurShape::BuildDrawGeometry |
( |
| ) |
|
|
inlineoverride |
Definition at line 316 of file canvas.cc.
316 {
317 return source_geometry_.emplace(source_);
318 }
◆ GetBounds()
| Rect impeller::Canvas::PathBlurShape::GetBounds |
( |
| ) |
const |
|
inlineoverride |
Definition at line 302 of file canvas.cc.
302 {
303 return shadow_vertices_->GetBounds().value_or(
Rect());
304 }
The documentation for this class was generated from the following file: