Flutter Engine
The Flutter Engine
Namespaces | Functions
skia_conversions.h File Reference
#include "display_list/dl_color.h"
#include "display_list/effects/dl_color_source.h"
#include "impeller/core/formats.h"
#include "impeller/geometry/color.h"
#include "impeller/geometry/path.h"
#include "impeller/geometry/path_builder.h"
#include "impeller/geometry/point.h"
#include "impeller/geometry/rect.h"
#include "third_party/skia/include/core/SkColor.h"
#include "third_party/skia/include/core/SkColorType.h"
#include "third_party/skia/include/core/SkPath.h"
#include "third_party/skia/include/core/SkPoint.h"
#include "third_party/skia/include/core/SkRRect.h"
#include "third_party/skia/include/core/SkRSXform.h"
#include "third_party/skia/include/core/SkTextBlob.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)
 
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)
 
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)
 
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...