Skip to content

Conversation

@flar
Copy link
Contributor

@flar flar commented Apr 26, 2025

When basic rendering operations end up in a "general case" situation in Impeller, it converts the basic shape into a path and calls DrawPath. But, the creation of the path is expensive and all the mechanisms behind drawing a path now only need a PathSource object which can replay the path to them.

We now have explicit lightweight path source generators which can feed the path drawing operations directly from the source data without having to create a full impeller::Path object.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests or get an explicit test exemption before merging.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.If you believe this PR qualifies for a test exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group.

@github-actions github-actions bot added engine flutter/engine related. See also e: labels. e: impeller Impeller rendering backend issues and features requests labels Apr 26, 2025
@flar
Copy link
Contributor Author

flar commented Apr 26, 2025

I will be planning on adding tests in a future commit, but I wanted to test the basic mechanism here first.

I also plan to convert super-ellipses to also use the new mechanism once it has passed proof-of-concept.

@flutter-dashboard
Copy link

Golden file changes have been found for this pull request. Click here to view and triage (e.g. because this is an intentional change).

If you are still iterating on this change and are not ready to resolve the images on the Flutter Gold dashboard, consider marking this PR as a draft pull request above. You will still be able to view image results on the dashboard, commenting will be silenced, and the check will not try to resolve itself until marked ready for review.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Changes reported for pull request #167863 at sha acbc0f0

@flutter-dashboard flutter-dashboard bot added the will affect goldens Changes to golden files label Apr 28, 2025
~PathGeometryBase() override;

protected:
const union {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Or should this be a variant? What happens in the destructor? I think all of the PathSource instances have an empty destructor, but DlPath might need its destructor called.

@flutter-dashboard
Copy link

Golden file changes are available for triage from new commit, Click here to view.

For more guidance, visit Writing a golden file test for package:flutter.

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Changes reported for pull request #167863 at sha 940d7c8

@flar
Copy link
Contributor Author

flar commented May 1, 2025

This is essentially superseded by #168125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e: impeller Impeller rendering backend issues and features requests engine flutter/engine related. See also e: labels. will affect goldens Changes to golden files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant