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

[Impeller] ensure Path.close does not insert lineTo for stroked paths. #52171

Closed

Conversation

jonahwilliams
Copy link
Member

Fixes flutter/flutter#146648

We shouldn't insert a LineTo to the path start when drawing a stroke. The convex tessellation currently relies on this, but I plan to refactor this later so we don't depend on this point.

@jonahwilliams
Copy link
Member Author

confusingly this breaks some other cases where we rely on the final lineTo

@jonahwilliams
Copy link
Member Author

OKAY I got it. THe problem is that the code in question has a moveTo followed by a close, which inserts two contours. moveTo implicitly closes. close has a check for continuous contours but it might not be working in this case. I think that narrows it down and the bug is more specific.

@jonahwilliams jonahwilliams marked this pull request as draft April 17, 2024 19:09
@flutter-dashboard
Copy link

This pull request has been changed to a draft. The currently pending flutter-gold status will not be able to resolve until a new commit is pushed or the change is marked ready for review again.

@jonahwilliams
Copy link
Member Author

Closing in favor of #52290

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Drawing a path results in an unexpected behavior with Impeller
1 participant