Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

[Impeller] store all path point data in single buffer. #47896

Merged
merged 11 commits into from
Nov 16, 2023
2 changes: 2 additions & 0 deletions impeller/display_list/skia_conversions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ Path ToPath(const SkPath& path, Point shift) {

PathBuilder builder;
PathData data;
// Reserve a path size with some arbitrarily additional padding.
builder.Reserve(path.countPoints() + 8, path.countVerbs() + 8);
auto verb = SkPath::Verb::kDone_Verb;
do {
verb = iterator.next(data.points);
Expand Down
1 change: 1 addition & 0 deletions impeller/geometry/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ impeller_component("geometry_unittests") {
sources = [
"geometry_unittests.cc",
"matrix_unittests.cc",
"path_unittests.cc",
"rect_unittests.cc",
"size_unittests.cc",
]
Expand Down
Loading