5#include "flutter/impeller/entity/geometry/round_rect_geometry.h"
10 : bounds_(
bounds), radii_(radii) {}
17 renderer.GetTessellator()->FilledRoundRect(
22std::optional<Rect> RoundRectGeometry::GetCoverage(
29 if (!
transform.IsTranslationScaleOnly()) {
34 if (!flat_on_tb && !flat_on_lr) {
const Matrix & GetTransform() const
Get the global transform matrix for this Entity.
static GeometryResult ComputePositionGeometry(const ContentContext &renderer, const Tessellator::VertexGenerator &generator, const Entity &entity, RenderPass &pass)
Render passes encode render commands directed as one specific render target into an underlying comman...
RoundRectGeometry(const Rect &bounds, const Size &radii)
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...
bool IsAxisAlignedRect() const override
Optional< SkRect > bounds
sk_sp< SkBlender > blender SkRect rect
SK_API sk_sp< PrecompileColorFilter > Matrix()
static SkColor4f transform(SkColor4f c, SkColorSpace *src, SkColorSpace *dst)
A 4x4 matrix using column-major storage.
constexpr TRect TransformBounds(const Matrix &transform) const
Creates a new bounding box that contains this transformed rectangle.
constexpr Type GetHeight() const
Returns the height of the rectangle, equivalent to |GetSize().height|.
constexpr Type GetWidth() const
Returns the width of the rectangle, equivalent to |GetSize().width|.
constexpr TRect< T > Expand(T left, T top, T right, T bottom) const
Returns a rectangle with expanded edges. Negative expansion results in shrinking.