Flutter Engine
The Flutter Engine
|
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.
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.
Path impeller::skia_conversions::PathDataFromTextBlob | ( | const sk_sp< SkTextBlob > & | blob, |
Point | shift | ||
) |
Definition at line 188 of file skia_conversions.cc.
Color impeller::skia_conversions::ToColor | ( | const flutter::DlColor & | color | ) |
Definition at line 162 of file skia_conversions.cc.
Definition at line 63 of file skia_conversions.cc.
Definition at line 146 of file skia_conversions.cc.
std::optional< impeller::PixelFormat > impeller::skia_conversions::ToPixelFormat | ( | SkColorType | type | ) |
Definition at line 196 of file skia_conversions.cc.
Definition at line 154 of file skia_conversions.cc.
Definition at line 45 of file skia_conversions.cc.
Definition at line 26 of file skia_conversions.cc.
PathBuilder::RoundingRadii impeller::skia_conversions::ToRoundingRadii | ( | const SkRRect & | rrect | ) |
Definition at line 53 of file skia_conversions.cc.
Definition at line 171 of file skia_conversions.cc.
Definition at line 158 of file skia_conversions.cc.