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) |
| PathBuilder::RoundingRadii | ToRoundingRadii (const SkRRect &rrect) |
| Path | ToPath (const SkRRect &rrect) |
| Point | ToPoint (const SkPoint &point) |
| Size | ToSize (const SkPoint &point) |
| Color | ToColor (const flutter::DlColor &color) |
| Matrix | ToRSXForm (const SkRSXform &form) |
| 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 144 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 21 of file skia_conversions.cc.
References SkScalarsNearlyEqual().
Referenced by impeller::DlDispatcherBase::drawRRect(), and impeller::testing::TEST().
|
inlinestatic |
Definition at line 12 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 204 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 106 of file skia_conversions.cc.
References color.
Referenced by ConvertStops(), impeller::DlAtlasGeometry::CreateBlendVertexBuffer(), impeller::DlDispatcherBase::drawColor(), impeller::DlDispatcherBase::drawShadow(), impeller::GetCPUColorFilterProc(), impeller::DlVerticesGeometry::GetPositionUVColorBuffer(), impeller::DlDispatcherBase::setColor(), impeller::TextFrameDispatcher::setColor(), impeller::testing::TEST(), and impeller::WrapWithGPUColorFilter().
| Matrix impeller::skia_conversions::ToMatrix | ( | const SkMatrix & | m | ) |
Definition at line 193 of file skia_conversions.cc.
Referenced by impeller::Paint::CreateContents(), impeller::Canvas::DrawVertices(), impeller::testing::TEST(), impeller::testing::TEST_P(), and impeller::WrapInput().
| Path impeller::skia_conversions::ToPath | ( | const SkRRect & | rrect | ) |
Definition at line 90 of file skia_conversions.cc.
References impeller::PathBuilder::AddRoundedRect(), impeller::kConvex, impeller::PathBuilder::SetBounds(), impeller::PathBuilder::SetConvexity(), impeller::PathBuilder::TakePath(), ToRect(), and ToRoundingRadii().
Referenced by impeller::DlDispatcherBase::clipRRect(), impeller::DlDispatcherBase::drawDRRect(), and impeller::DlDispatcherBase::drawRRect().
| std::optional< impeller::PixelFormat > impeller::skia_conversions::ToPixelFormat | ( | SkColorType | type | ) |
Definition at line 128 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 98 of file skia_conversions.cc.
References impeller::TPoint< Scalar >::MakeXY().
Referenced by impeller::Paint::CreateContents(), impeller::DlVerticesGeometry::GetPositionUVColorBuffer(), impeller::testing::TEST(), ToPoints(), and ToRoundingRadii().
| std::vector< Point > impeller::skia_conversions::ToPoints | ( | const flutter::DlPoint | points[], |
| int | count | ||
| ) |
Definition at line 72 of file skia_conversions.cc.
| std::vector< Point > impeller::skia_conversions::ToPoints | ( | const SkPoint | points[], |
| int | count | ||
| ) |
Definition at line 64 of file skia_conversions.cc.
References ToPoint().
Referenced by impeller::DlDispatcherBase::drawPoints().
| std::optional< const Rect > impeller::skia_conversions::ToRect | ( | const flutter::DlRect * | rect | ) |
Definition at line 41 of file skia_conversions.cc.
| Rect impeller::skia_conversions::ToRect | ( | const SkRect & | rect | ) |
Definition at line 30 of file skia_conversions.cc.
References impeller::TRect< Scalar >::MakeLTRB().
Referenced by impeller::DlDispatcherBase::clipPath(), impeller::DlDispatcherBase::clipRRect(), impeller::DlVerticesGeometry::DlVerticesGeometry(), impeller::DlDispatcherBase::drawAtlas(), impeller::DlDispatcherBase::drawDisplayList(), impeller::DlDispatcherBase::drawRRect(), impeller::DlDispatcherBase::SimplifyOrDrawPath(), ToPath(), and ToRects().
| std::optional< Rect > impeller::skia_conversions::ToRect | ( | const SkRect * | rect | ) |
Definition at line 34 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 56 of file skia_conversions.cc.
| std::vector< Rect > impeller::skia_conversions::ToRects | ( | const SkRect | tex[], |
| int | count | ||
| ) |
| PathBuilder::RoundingRadii impeller::skia_conversions::ToRoundingRadii | ( | const SkRRect & | rrect | ) |
Definition at line 80 of file skia_conversions.cc.
References impeller::PathBuilder::RoundingRadii::bottom_left, impeller::PathBuilder::RoundingRadii::bottom_right, impeller::PathBuilder::RoundingRadii::top_left, impeller::PathBuilder::RoundingRadii::top_right, and ToPoint().
Referenced by ToPath().
| Matrix impeller::skia_conversions::ToRSXForm | ( | const SkRSXform & | form | ) |
Definition at line 117 of file skia_conversions.cc.
Referenced by impeller::DlAtlasGeometry::ComputeBoundingBox(), impeller::DlAtlasGeometry::CreateBlendVertexBuffer(), and impeller::DlAtlasGeometry::CreateSimpleVertexBuffer().
| impeller::SamplerDescriptor impeller::skia_conversions::ToSamplerDescriptor | ( | const flutter::DlImageSampling | options | ) |
Definition at line 169 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 102 of file skia_conversions.cc.
Referenced by impeller::DlDispatcherBase::clipPath(), impeller::DlDispatcherBase::clipRRect(), impeller::DlDispatcherBase::drawRRect(), impeller::DlDispatcherBase::SimplifyOrDrawPath(), and impeller::testing::TEST().