Flutter Impeller
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

 impeller
 
 impeller::skia_conversions
 

Functions

static bool impeller::skia_conversions::SkScalarsNearlyEqual (SkScalar a, SkScalar b, SkScalar c, SkScalar d)
 
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::optional< const Rect > impeller::skia_conversions::ToRect (const flutter::DlRect *rect)
 
std::vector< Rect > impeller::skia_conversions::ToRects (const SkRect tex[], int count)
 
std::vector< Rect > impeller::skia_conversions::ToRects (const flutter::DlRect tex[], int count)
 
std::vector< Point > impeller::skia_conversions::ToPoints (const SkPoint points[], int count)
 
std::vector< Point > impeller::skia_conversions::ToPoints (const flutter::DlPoint points[], int count)
 
PathBuilder::RoundingRadii impeller::skia_conversions::ToRoundingRadii (const SkRRect &rrect)
 
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)
 
Matrix impeller::skia_conversions::ToRSXForm (const SkRSXform &form)
 
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...
 
impeller::SamplerDescriptor impeller::skia_conversions::ToSamplerDescriptor (const flutter::DlImageSampling options)
 
Matrix impeller::skia_conversions::ToMatrix (const SkMatrix &m)
 
BlendMode impeller::skia_conversions::ToBlendMode (flutter::DlBlendMode mode)