Functions | |
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 198 of file skia_conversions.cc.
References ToColor().
Referenced by impeller::DlDispatcher::setColorSource(), 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 148 of file skia_conversions.cc.
Referenced by ConvertStops(), impeller::DlDispatcher::drawColor(), impeller::DlDispatcher::drawShadow(), impeller::MakeVertices(), impeller::testing::TEST(), impeller::ToColorFilter(), and impeller::ToColors().
Definition at line 49 of file skia_conversions.cc.
References impeller::PathBuilder::Close(), impeller::PathBuilder::CubicCurveTo(), 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::DlDispatcher::clipRRect(), impeller::DlDispatcher::drawDRRect(), impeller::DlDispatcher::drawRRect(), PathDataFromTextBlob(), and impeller::testing::TEST_P().
Path impeller::skia_conversions::ToPath | ( | const SkRRect & | rrect | ) |
Definition at line 132 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 182 of file skia_conversions.cc.
References impeller::kB10G10R10XR, impeller::kB8G8R8A8UNormInt, impeller::kR16G16B16A16Float, and impeller::kR8G8B8A8UNormInt.
Point impeller::skia_conversions::ToPoint | ( | const SkPoint & | point | ) |
Definition at line 140 of file skia_conversions.cc.
References impeller::TPoint< Scalar >::MakeXY().
Referenced by impeller::DlDispatcher::drawCircle(), impeller::DlDispatcher::drawLine(), impeller::DlDispatcher::drawPoints(), impeller::MakeVertices(), impeller::DlDispatcher::setColorSource(), impeller::testing::TEST(), ToPath(), ToPoints(), and ToRoundingRadii().
std::vector< Point > impeller::skia_conversions::ToPoints | ( | const SkPoint | points[], |
int | count | ||
) |
Definition at line 31 of file skia_conversions.cc.
References ToPoint().
Referenced by impeller::DlDispatcher::drawPoints().
Rect impeller::skia_conversions::ToRect | ( | const SkRect & | rect | ) |
Definition at line 12 of file skia_conversions.cc.
References impeller::TRect< Scalar >::MakeLTRB().
Referenced by impeller::DlDispatcher::clipPath(), impeller::DlDispatcher::clipRect(), impeller::DlDispatcher::clipRRect(), impeller::DlDispatcher::drawArc(), impeller::DlDispatcher::drawAtlas(), impeller::DlDispatcher::drawImageNine(), impeller::DlDispatcher::drawImageRect(), impeller::DlDispatcher::drawOval(), impeller::DlDispatcher::drawRect(), impeller::DlDispatcher::drawRRect(), impeller::DlDispatcher::saveLayer(), ToPath(), and ToRects().
std::optional< Rect > impeller::skia_conversions::ToRect | ( | const SkRect * | rect | ) |
Definition at line 16 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 23 of file skia_conversions.cc.
References ToRect().
Referenced by impeller::DlDispatcher::drawAtlas().
PathBuilder::RoundingRadii impeller::skia_conversions::ToRoundingRadii | ( | const SkRRect & | rrect | ) |
Definition at line 39 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 157 of file skia_conversions.cc.
Referenced by impeller::DlDispatcher::drawAtlas().
Size impeller::skia_conversions::ToSize | ( | const SkPoint & | point | ) |
Definition at line 144 of file skia_conversions.cc.
Referenced by impeller::DlDispatcher::clipPath(), impeller::DlDispatcher::clipRRect(), impeller::DlDispatcher::drawRRect(), and impeller::testing::TEST().