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

Conversation

@dnfield
Copy link
Contributor

@dnfield dnfield commented Apr 7, 2023

These utilities are useful in tests and it would otherwise be tempting to duplicate the logic of them in other TUs. It also helps make it a little clearer which parts of Impeller are talking to Skia types without DL interfaces right now, for better or worse.

This is split from #40975 and has a test in there.

dnfield added 6 commits April 6, 2023 12:49
Bumps up some size assumptions to accomodate larger paths.
Fixes bugs in the polyline shader that were highlighted by
processing larger more complicated paths.

Adds a test for a larger more complex path. Adds a playground for
testing arbitrary SVG-encoded paths.
@dnfield dnfield requested review from flar and gaaclarke April 7, 2023 21:15
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

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.

lib/ui/BUILD.gn Outdated
deps += [ "//flutter/impeller" ]
deps += [
"//flutter/impeller",
"//flutter/impeller/display_list",
Copy link
Member

Choose a reason for hiding this comment

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

I think we should turn the skia_conversions to its own target instead of making ui have to depend on all of display_list. Otherwise looks good to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@dnfield dnfield requested a review from gaaclarke April 8, 2023 03:33
Copy link
Contributor

@flar flar left a comment

Choose a reason for hiding this comment

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

LGTM

@flar
Copy link
Contributor

flar commented Apr 8, 2023

Filed flutter/flutter#124455 that I noticed while looking this over. I'll take care of it as a separate bookkeeping PR when these go in as it has no impact on functionality or performance.

@flar
Copy link
Contributor

flar commented Apr 9, 2023

@gaaclarke it looks like this PR is blocked by your review even though @dnfield addressed the issues.

@dnfield dnfield dismissed gaaclarke’s stale review April 10, 2023 16:44

I think I've addressed this - happy to follow up if there was something I missed.

@dnfield dnfield added the autosubmit Merge PR when tree becomes green via auto submit App label Apr 10, 2023
@auto-submit auto-submit bot merged commit 52d5431 into flutter:main Apr 10, 2023
@dnfield dnfield deleted the skia_conv branch April 10, 2023 16:47
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 10, 2023
gspencergoog pushed a commit to gspencergoog/engine that referenced this pull request Apr 10, 2023
Move Skia conversion utilities to own TU
zhongwuzw pushed a commit to zhongwuzw/engine that referenced this pull request Apr 14, 2023
Move Skia conversion utilities to own TU
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App needs tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants