5#ifndef FLUTTER_IMPELLER_ENTITY_GEOMETRY_LINE_GEOMETRY_H_
6#define FLUTTER_IMPELLER_ENTITY_GEOMETRY_LINE_GEOMETRY_H_
42 bool ComputeCorners(
Point corners[4],
44 bool extend_endpoints)
const;
47 bool allow_zero_length)
const;
55 std::optional<Rect> GetCoverage(
const Matrix&
transform)
const override;
LineGeometry(Point p0, Point p1, Scalar width, Cap cap)
static Scalar ComputePixelHalfWidth(const Matrix &transform, Scalar width)
bool IsAxisAlignedRect() const override
bool CoversArea(const Matrix &transform, const Rect &rect) const override
Determines if this geometry, transformed by the given transform, will completely cover all surface ar...
Render passes encode render commands directed as one specific render target into an underlying comman...
sk_sp< SkBlender > blender SkRect rect
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)
A 4x4 matrix using column-major storage.