[Impeller] fix quadradic behavior in polyline creation (flutter/engine#36680)

This commit is contained in:
Jonah Williams 2022-10-10 10:40:49 -07:00 committed by GitHub
parent e63ad0fc58
commit 9ffeb225ef

View File

@ -232,8 +232,6 @@ Path::Polyline Path::CreatePolyline(
return;
}
polyline.points.reserve(polyline.points.size() + collection.size());
for (const auto& point : collection) {
if (previous_contour_point.has_value() &&
previous_contour_point.value() == point) {