mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Currently stroking paths in Impeller goes through a few steps: - [Once per path object, if reused] If necessary, convert a source Skia path to an Impeller path - Ask the Impeller path object to create a polyline, with only line segments each potentially marked as "coming from a curve" - Widen the polyline treating curves specially - render the widened vertex list This PR attempts to streamline that process by iterating the original curve and widening the strokes from that. It will require no conversion of the path from SkPath to impeller::Path (if it was created as an SkPath as is done for all ui.Path objects). It also avoids the intermediate polyline stage. It will also produce fewer outline vertices since it attempts to recognize which vertices are produced by the prior and future line segments and avoid duplicating them.
Flutter Engine
Setting up the Engine development environment
See here
gclient bootstrap
Flutter engine uses gclient to manage dependencies.
If you've already cloned the flutter repository: