This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Defer applying opacity when saving layer #36279
Merged
Merged
Changes from 7 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8ef540f
[Impeller] Support 'texture_sampler_y_coord_scale' in more filters
ColdPaleLight 4c04abe
[Impeller] Defer applying opacity when saving layer
ColdPaleLight f9c81c8
Merge branch 'main' into filters_with_alpha
ColdPaleLight 320cf34
Add more test
ColdPaleLight fe93b80
Merge branch 'flutter:main' into filters_with_alpha
ColdPaleLight 8604270
Merge branch 'flutter:main' into filters_with_alpha
ColdPaleLight a53f46f
Rename to 'absorb_opacity_' and put them in each filter
ColdPaleLight fa81ed4
Merge branch 'flutter:main' into filters_with_alpha
ColdPaleLight 0881be9
Merge branch 'flutter:main' into filters_with_alpha
ColdPaleLight a2bc5b5
Add a new method 'Paint::WithFiltersForSubpassTarget' and a new class…
ColdPaleLight d8d6f3f
merge main
ColdPaleLight dd4b433
Update licenses_flutter
ColdPaleLight c20563d
Clean code
ColdPaleLight 6e1bf70
Reuse logic
ColdPaleLight d0b2024
Merge branch 'flutter:main' into filters_with_alpha
ColdPaleLight File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Since we'll have to diverge with the ordering of
WithFiltersat some point anyhow, maybe we should just do theWithFilterslogic inline here and build the filter chain exactly as it needs to be. Then, we can set the alpha absorption flag on the color filter here where it's needed instead of having to do it in the dispatcher or color filter procs.To facilitate this, we could also add a
ColorFilterContentsclass that extendsFilterContentswhich is inherited by all of the color filters -- this would hold the setter and remove the repeated code without having to place it on filters that will never use it.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.
Good idea! I'll make the changes as you suggested after the holidays (aka next week).
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.
Done. I adjusted the PR according to your suggestion, the one difference is that I added a method
Paint::WithFiltersForSubpassTarget, which can reuse some logic. Let me know what you think!