-
Notifications
You must be signed in to change notification settings - Fork 29.7k
[flutter_tool] Build shaders as .iplr and use FragmentProgram.fromAsset for ink_sparkle #108071
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
Conversation
|
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. |
be726b9 to
9a3754a
Compare
|
@jonahwilliams Switching over to |
|
That SGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we have a safe delete helper? Though its not exactly harmless, they end up bundled into the app
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replaced with ErrorHandlingFileSystem.deleteIfExists, which will throwToolExit if the delete fails.
jonahwilliams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM withnit
|
This is going to be easier to roll internally after we use a flag rather than the output file extension to indicating wrapping in the |
|
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. For more guidance, visit Writing a golden file test for Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
…et for ink_sparkle
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
….fromAsset for ink_sparkle (flutter/flutter#108071)
…et for ink_sparkle (flutter#108071)
This PR causes the tool to bundle shaders as SkSL in a
.iplrcontainer, and to useFragmentProgram.fromAssetto load the ink_sparkle shader.This will require fixes to the internal build, which are here: cl/462521386 cc @chingjun
After this lands we can start deleting the transpiler and old API.