From 9ffeb225efb28f9e4eb5210bee223fdb1662c8ff Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Mon, 10 Oct 2022 10:40:49 -0700 Subject: [PATCH] [Impeller] fix quadradic behavior in polyline creation (flutter/engine#36680) --- engine/src/flutter/impeller/geometry/path.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/engine/src/flutter/impeller/geometry/path.cc b/engine/src/flutter/impeller/geometry/path.cc index bc4164c7cfc..7e632d72879 100644 --- a/engine/src/flutter/impeller/geometry/path.cc +++ b/engine/src/flutter/impeller/geometry/path.cc @@ -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) {