Functions | |
| static bool | SkScalarsNearlyEqual (SkScalar a, SkScalar b, SkScalar c, SkScalar d) |
| 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::optional< const Rect > | ToRect (const flutter::DlRect *rect) |
| std::vector< Rect > | ToRects (const SkRect tex[], int count) |
| std::vector< Rect > | ToRects (const flutter::DlRect tex[], int count) |
| std::vector< Point > | ToPoints (const SkPoint points[], int count) |
| std::vector< Point > | ToPoints (const flutter::DlPoint points[], int count) |
| Point | ToPoint (const SkPoint &point) |
| Size | ToSize (const SkPoint &point) |
| Color | ToColor (const flutter::DlColor &color) |
| 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... | |
| impeller::SamplerDescriptor | ToSamplerDescriptor (const flutter::DlImageSampling options) |
| Matrix | ToMatrix (const SkMatrix &m) |
| BlendMode | ToBlendMode (flutter::DlBlendMode mode) |
| 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 116 of file skia_conversions.cc.
References ToColor().
Referenced by impeller::Paint::CreateContents(), and impeller::testing::TEST().
| 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 22 of file skia_conversions.cc.
References SkScalarsNearlyEqual().
Referenced by impeller::testing::TEST().
|
inlinestatic |
Definition at line 13 of file skia_conversions.cc.
References impeller::saturated::b, and impeller::kEhCloseEnough.
Referenced by IsNearlySimpleRRect().
| BlendMode impeller::skia_conversions::ToBlendMode | ( | flutter::DlBlendMode | mode | ) |
Definition at line 176 of file skia_conversions.cc.
References impeller::kClear, impeller::kColor, impeller::kColorBurn, impeller::kColorDodge, impeller::kDarken, impeller::kDestination, impeller::kDestinationATop, impeller::kDestinationIn, impeller::kDestinationOut, impeller::kDestinationOver, impeller::kDifference, impeller::kExclusion, impeller::kHardLight, impeller::kHue, impeller::kLighten, impeller::kLuminosity, impeller::kModulate, impeller::kMultiply, impeller::kOverlay, impeller::kPlus, impeller::kSaturation, impeller::kScreen, impeller::kSoftLight, impeller::kSource, impeller::kSourceATop, impeller::kSourceIn, impeller::kSourceOut, impeller::kSourceOver, and impeller::kXor.
Referenced by impeller::DlDispatcherBase::drawAtlas(), impeller::DlDispatcherBase::drawColor(), impeller::CanvasDlDispatcher::drawVertices(), impeller::RequiresReadbackForBlends(), impeller::DlDispatcherBase::setBlendMode(), and impeller::testing::TEST().
| Color impeller::skia_conversions::ToColor | ( | const flutter::DlColor & | color | ) |
Definition at line 89 of file skia_conversions.cc.
Referenced by ConvertStops(), impeller::DlAtlasGeometry::CreateBlendVertexBuffer(), impeller::DlDispatcherBase::drawColor(), impeller::DlDispatcherBase::drawShadow(), impeller::GetCPUColorFilterProc(), impeller::DlVerticesGeometry::GetPositionUVColorBuffer(), impeller::DlDispatcherBase::setColor(), impeller::FirstPassDispatcher::setColor(), impeller::testing::TEST(), and impeller::WrapWithGPUColorFilter().
| Matrix impeller::skia_conversions::ToMatrix | ( | const SkMatrix & | m | ) |
Definition at line 165 of file skia_conversions.cc.
Referenced by impeller::testing::TEST(), and impeller::testing::TEST_P().
| std::optional< impeller::PixelFormat > impeller::skia_conversions::ToPixelFormat | ( | SkColorType | type | ) |
Definition at line 100 of file skia_conversions.cc.
References impeller::kB10G10R10XR, impeller::kB8G8R8A8UNormInt, impeller::kR16G16B16A16Float, impeller::kR8G8B8A8UNormInt, and type.
| Point impeller::skia_conversions::ToPoint | ( | const SkPoint & | point | ) |
Definition at line 81 of file skia_conversions.cc.
References impeller::TPoint< Scalar >::MakeXY().
Referenced by impeller::testing::TEST(), and ToPoints().
| std::vector< Point > impeller::skia_conversions::ToPoints | ( | const flutter::DlPoint | points[], |
| int | count | ||
| ) |
Definition at line 73 of file skia_conversions.cc.
| std::vector< Point > impeller::skia_conversions::ToPoints | ( | const SkPoint | points[], |
| int | count | ||
| ) |
Definition at line 65 of file skia_conversions.cc.
References ToPoint().
| std::optional< const Rect > impeller::skia_conversions::ToRect | ( | const flutter::DlRect * | rect | ) |
Definition at line 42 of file skia_conversions.cc.
| Rect impeller::skia_conversions::ToRect | ( | const SkRect & | rect | ) |
Definition at line 31 of file skia_conversions.cc.
References impeller::TRect< Scalar >::MakeLTRB().
Referenced by impeller::DlDispatcherBase::clipPath(), impeller::DlDispatcherBase::drawAtlas(), impeller::DlDispatcherBase::drawDisplayList(), and ToRects().
| std::optional< Rect > impeller::skia_conversions::ToRect | ( | const SkRect * | rect | ) |
Definition at line 35 of file skia_conversions.cc.
References impeller::TRect< Scalar >::MakeLTRB().
| std::vector< Rect > impeller::skia_conversions::ToRects | ( | const flutter::DlRect | tex[], |
| int | count | ||
| ) |
Definition at line 57 of file skia_conversions.cc.
| std::vector< Rect > impeller::skia_conversions::ToRects | ( | const SkRect | tex[], |
| int | count | ||
| ) |
Definition at line 49 of file skia_conversions.cc.
References ToRect().
| impeller::SamplerDescriptor impeller::skia_conversions::ToSamplerDescriptor | ( | const flutter::DlImageSampling | options | ) |
Definition at line 141 of file skia_conversions.cc.
References impeller::kBase, impeller::kLinear, impeller::kNearest, impeller::SamplerDescriptor::label, impeller::SamplerDescriptor::mag_filter, impeller::SamplerDescriptor::min_filter, and impeller::SamplerDescriptor::mip_filter.
Referenced by impeller::Paint::CreateContents(), impeller::DlDispatcherBase::drawAtlas(), impeller::DlDispatcherBase::drawImageRect(), impeller::Canvas::DrawVertices(), impeller::testing::TEST(), and impeller::WrapInput().
| Size impeller::skia_conversions::ToSize | ( | const SkPoint & | point | ) |
Definition at line 85 of file skia_conversions.cc.
Referenced by impeller::DlDispatcherBase::clipPath(), and impeller::testing::TEST().