#include <geometry.h>
Public Member Functions | |
| Geometry () | |
| virtual | ~Geometry () |
| virtual GeometryResult | GetPositionBuffer (const ContentContext &renderer, const Entity &entity, RenderPass &pass)=0 |
| virtual GeometryResult | GetPositionUVBuffer (Rect texture_coverage, Matrix effect_transform, const ContentContext &renderer, const Entity &entity, RenderPass &pass) |
| virtual GeometryVertexType | GetVertexType () const =0 |
| virtual std::optional< Rect > | GetCoverage (const Matrix &transform) const =0 |
| virtual bool | CoversArea (const Matrix &transform, const Rect &rect) const |
Determines if this geometry, transformed by the given transform, will completely cover all surface area of the given rect. More... | |
Static Public Member Functions | |
| static std::unique_ptr< Geometry > | MakeFillPath (const Path &path, std::optional< Rect > inner_rect=std::nullopt) |
| static std::unique_ptr< Geometry > | MakeStrokePath (const Path &path, Scalar stroke_width=0.0, Scalar miter_limit=4.0, Cap stroke_cap=Cap::kButt, Join stroke_join=Join::kMiter) |
| static std::unique_ptr< Geometry > | MakeCover () |
| static std::unique_ptr< Geometry > | MakeRect (Rect rect) |
| static std::unique_ptr< Geometry > | MakePointField (std::vector< Point > points, Scalar radius, bool round) |
Definition at line 54 of file geometry.h.
|
default |
|
virtualdefault |
Determines if this geometry, transformed by the given transform, will completely cover all surface area of the given rect.
This is a conservative estimate useful for certain optimizations.
true if the transformed geometry is guaranteed to cover the given rect. May return false in many undetected cases where the transformed geometry does in fact cover the rect. Reimplemented in impeller::FillPathGeometry, impeller::CoverGeometry, and impeller::RectGeometry.
Definition at line 146 of file geometry.cc.
|
pure virtual |
Implemented in impeller::VerticesGeometry.
|
pure virtual |
Implemented in impeller::VerticesGeometry.
|
virtual |
Reimplemented in impeller::VerticesGeometry.
Definition at line 105 of file geometry.cc.
|
pure virtual |
Implemented in impeller::VerticesGeometry.
|
static |
Definition at line 138 of file geometry.cc.
Referenced by impeller::Paint::CreateContentsForEntity(), and impeller::testing::TEST_P().
|
static |
Definition at line 113 of file geometry.cc.
Referenced by impeller::Canvas::ClipPath(), impeller::Canvas::ClipRRect(), impeller::Paint::CreateContentsForEntity(), impeller::Canvas::DrawRRect(), impeller::SolidColorContents::Make(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
static |
Definition at line 119 of file geometry.cc.
Referenced by impeller::Canvas::DrawPoints(), and impeller::testing::TEST_P().
Definition at line 142 of file geometry.cc.
Referenced by impeller::Canvas::ClipRect(), impeller::Paint::MaskBlurDescriptor::CreateMaskBlur(), impeller::Canvas::DrawRect(), impeller::Canvas::DrawVertices(), impeller::PipelineBlend(), impeller::testing::TEST(), and impeller::testing::TEST_P().
|
static |
Definition at line 125 of file geometry.cc.
Referenced by impeller::Paint::CreateContentsForEntity(), and impeller::testing::TEST_P().