Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Impeller] remove incremental allocation during filled path tessellation. #52401

Merged

Conversation

jonahwilliams
Copy link
Member

@jonahwilliams jonahwilliams commented Apr 25, 2024

Don't allocate a polyline (and resulting std::vectors) when performing convex tessellation. Instead use a listener pattern and iterate through path verbs.

@chinmaygarde
Copy link
Member

I don't think the goldens run till the sub-builds are done.

@jonahwilliams
Copy link
Member Author

It turns out they actually do, you can click into the flutter gold pending task and get a link:

https://flutter-engine-gold.skia.org/search?issue=52401&crs=github&patchsets=2&corpus=flutter-engine

This still has some bugs :)

@chinmaygarde
Copy link
Member

🤯

@jonahwilliams jonahwilliams requested a review from chinmaygarde May 1, 2024 16:57
@jonahwilliams
Copy link
Member Author

Working now! modulo CI issues

point_count += single_point_count;
}
auto polyline = path.CreatePolyline(
// Clang-tidy doesn't know that the points get moved back before
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, this is hard for me to follow lol. Thanks for the comment.

@jonahwilliams jonahwilliams added the autosubmit Merge PR when tree becomes green via auto submit App label May 2, 2024
@auto-submit auto-submit bot merged commit 0d5a79e into flutter:main May 2, 2024
29 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 2, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 2, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 2, 2024
…147693)

flutter/engine@3087ec1...78dced5

2024-05-02 [email protected] et phone home (flutter/engine#52506)
2024-05-02 [email protected] [web] Expose browser_detection through ui_web. (flutter/engine#52380)
2024-05-02 [email protected] [Impeller] remove incremental allocation during filled path tessellation. (flutter/engine#52401)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App e: impeller
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants