Functions | |
| bool | IsNearlySimpleRRect (const SkRRect &rr) |
| Like SkRRect.isSimple, but allows the corners to differ by kEhCloseEnough. More... | |
| Rect | ToRect (const SkRect &rect) |
| std::optional< Rect > | ToRect (const SkRect *rect) |
| std::vector< Rect > | ToRects (const SkRect tex[], int count) |
| std::vector< Point > | ToPoints (const SkPoint points[], int count) |
| PathBuilder::RoundingRadii | ToRoundingRadii (const SkRRect &rrect) |
| Path | ToPath (const SkPath &path, Point shift) |
| Path | ToPath (const SkRRect &rrect) |
| Point | ToPoint (const SkPoint &point) |
| Size | ToSize (const SkPoint &point) |
| Color | ToColor (const flutter::DlColor &color) |
| std::vector< Matrix > | ToRSXForms (const SkRSXform xform[], int count) |
| Path | PathDataFromTextBlob (const sk_sp< SkTextBlob > &blob, Point shift) |
| std::optional< impeller::PixelFormat > | ToPixelFormat (SkColorType type) |
| void | ConvertStops (const flutter::DlGradientColorSourceBase *gradient, std::vector< Color > &colors, std::vector< float > &stops) |
| Convert display list colors + stops into impeller colors and stops, taking care to ensure that the stops monotonically increase from 0.0 to 1.0. More... | |
| void impeller::skia_conversions::ConvertStops | ( | const flutter::DlGradientColorSourceBase * | gradient, |
| std::vector< Color > & | colors, | ||
| std::vector< float > & | stops | ||
| ) |
Convert display list colors + stops into impeller colors and stops, taking care to ensure that the stops monotonically increase from 0.0 to 1.0.
The general process is:
Definition at line 212 of file skia_conversions.cc.
References ToColor().
Referenced by impeller::DlDispatcherBase::setColorSource(), and impeller::testing::TEST().
| bool impeller::skia_conversions::IsNearlySimpleRRect | ( | const SkRRect & | rr | ) |
Like SkRRect.isSimple, but allows the corners to differ by kEhCloseEnough.
An RRect is simple if all corner radii are approximately equal.
Definition at line 12 of file skia_conversions.cc.
References impeller::saturated::b, and impeller::kEhCloseEnough.
Referenced by impeller::DlDispatcherBase::drawRRect(), and impeller::testing::TEST().
| Path impeller::skia_conversions::PathDataFromTextBlob | ( | const sk_sp< SkTextBlob > & | blob, |
| Point | shift | ||
| ) |
| Color impeller::skia_conversions::ToColor | ( | const flutter::DlColor & | color | ) |
Definition at line 162 of file skia_conversions.cc.
References color.
Referenced by ConvertStops(), impeller::DlDispatcherBase::drawColor(), impeller::DlDispatcherBase::drawShadow(), impeller::MakeVertices(), impeller::testing::TEST(), impeller::ToColorFilter(), and impeller::ToColors().
Definition at line 63 of file skia_conversions.cc.
References impeller::PathBuilder::Close(), impeller::PathBuilder::CubicCurveTo(), data, impeller::kConvex, impeller::kNonZero, impeller::kOdd, impeller::kUnknown, impeller::PathBuilder::LineTo(), impeller::PathBuilder::MoveTo(), impeller::PathBuilder::QuadraticCurveTo(), impeller::PathBuilder::Reserve(), impeller::PathBuilder::SetBounds(), impeller::PathBuilder::SetConvexity(), impeller::PathBuilder::Shift(), impeller::PathBuilder::TakePath(), ToPoint(), ToRect(), impeller::TPoint< T >::x, and impeller::TPoint< T >::y.
Referenced by impeller::DlDispatcherBase::clipRRect(), impeller::DlDispatcherBase::drawDRRect(), impeller::DlDispatcherBase::drawRRect(), and PathDataFromTextBlob().
| Path impeller::skia_conversions::ToPath | ( | const SkRRect & | rrect | ) |
Definition at line 146 of file skia_conversions.cc.
References impeller::PathBuilder::AddRoundedRect(), impeller::kConvex, impeller::PathBuilder::SetBounds(), impeller::PathBuilder::SetConvexity(), impeller::PathBuilder::TakePath(), ToRect(), and ToRoundingRadii().
| std::optional< impeller::PixelFormat > impeller::skia_conversions::ToPixelFormat | ( | SkColorType | type | ) |
Definition at line 196 of file skia_conversions.cc.
References impeller::kB10G10R10XR, impeller::kB8G8R8A8UNormInt, impeller::kR16G16B16A16Float, impeller::kR8G8B8A8UNormInt, and type.
| Point impeller::skia_conversions::ToPoint | ( | const SkPoint & | point | ) |
Definition at line 154 of file skia_conversions.cc.
References impeller::TPoint< Scalar >::MakeXY().
Referenced by impeller::DlDispatcherBase::drawCircle(), impeller::DlDispatcherBase::drawLine(), impeller::DlDispatcherBase::drawPoints(), impeller::MakeVertices(), impeller::DlDispatcherBase::setColorSource(), impeller::testing::TEST(), ToPath(), ToPoints(), and ToRoundingRadii().
| std::vector< Point > impeller::skia_conversions::ToPoints | ( | const SkPoint | points[], |
| int | count | ||
| ) |
Definition at line 45 of file skia_conversions.cc.
References ToPoint().
Referenced by impeller::DlDispatcherBase::drawPoints().
| Rect impeller::skia_conversions::ToRect | ( | const SkRect & | rect | ) |
Definition at line 26 of file skia_conversions.cc.
References impeller::TRect< Scalar >::MakeLTRB().
Referenced by impeller::DlDispatcherBase::clipPath(), impeller::DlDispatcherBase::clipRect(), impeller::DlDispatcherBase::clipRRect(), impeller::DlDispatcherBase::drawArc(), impeller::DlDispatcherBase::drawAtlas(), impeller::DlDispatcherBase::drawDisplayList(), impeller::DlDispatcherBase::drawImageNine(), impeller::DlDispatcherBase::drawImageRect(), impeller::DlDispatcherBase::drawOval(), impeller::DlDispatcherBase::drawRect(), impeller::DlDispatcherBase::drawRRect(), impeller::DlDispatcherBase::saveLayer(), ToPath(), and ToRects().
| std::optional< Rect > impeller::skia_conversions::ToRect | ( | const SkRect * | rect | ) |
Definition at line 30 of file skia_conversions.cc.
References impeller::TRect< Scalar >::MakeLTRB().
| std::vector< Rect > impeller::skia_conversions::ToRects | ( | const SkRect | tex[], |
| int | count | ||
| ) |
Definition at line 37 of file skia_conversions.cc.
References ToRect().
Referenced by impeller::DlDispatcherBase::drawAtlas().
| PathBuilder::RoundingRadii impeller::skia_conversions::ToRoundingRadii | ( | const SkRRect & | rrect | ) |
Definition at line 53 of file skia_conversions.cc.
References impeller::PathBuilder::RoundingRadii::bottom_left, impeller::PathBuilder::RoundingRadii::bottom_right, impeller::PathBuilder::RoundingRadii::top_left, impeller::PathBuilder::RoundingRadii::top_right, and ToPoint().
Referenced by ToPath().
| std::vector< Matrix > impeller::skia_conversions::ToRSXForms | ( | const SkRSXform | xform[], |
| int | count | ||
| ) |
Definition at line 171 of file skia_conversions.cc.
Referenced by impeller::DlDispatcherBase::drawAtlas().
| Size impeller::skia_conversions::ToSize | ( | const SkPoint & | point | ) |
Definition at line 158 of file skia_conversions.cc.
Referenced by impeller::DlDispatcherBase::clipPath(), impeller::DlDispatcherBase::clipRRect(), impeller::DlDispatcherBase::drawRRect(), and impeller::testing::TEST().