Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Namespaces | Functions
skia_conversions.cc File Reference
#include "impeller/display_list/skia_conversions.h"
#include "display_list/dl_color.h"
#include "third_party/skia/modules/skparagraph/include/Paragraph.h"

Go to the source code of this file.

Namespaces

namespace  impeller
 
namespace  impeller::skia_conversions
 

Functions

bool impeller::skia_conversions::IsNearlySimpleRRect (const SkRRect &rr)
 Like SkRRect.isSimple, but allows the corners to differ by kEhCloseEnough. More...
 
Rect impeller::skia_conversions::ToRect (const SkRect &rect)
 
std::optional< Rect > impeller::skia_conversions::ToRect (const SkRect *rect)
 
std::vector< Rect > impeller::skia_conversions::ToRects (const SkRect tex[], int count)
 
std::vector< Point > impeller::skia_conversions::ToPoints (const SkPoint points[], int count)
 
PathBuilder::RoundingRadii impeller::skia_conversions::ToRoundingRadii (const SkRRect &rrect)
 
Path impeller::skia_conversions::ToPath (const SkPath &path, Point shift)
 
Path impeller::skia_conversions::ToPath (const SkRRect &rrect)
 
Point impeller::skia_conversions::ToPoint (const SkPoint &point)
 
Size impeller::skia_conversions::ToSize (const SkPoint &point)
 
Color impeller::skia_conversions::ToColor (const flutter::DlColor &color)
 
std::vector< Matrix > impeller::skia_conversions::ToRSXForms (const SkRSXform xform[], int count)
 
Path impeller::skia_conversions::PathDataFromTextBlob (const sk_sp< SkTextBlob > &blob, Point shift)
 
std::optional< impeller::PixelFormatimpeller::skia_conversions::ToPixelFormat (SkColorType type)
 
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. More...