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

[Impeller] Fix modulate blend mode#36659

Merged
auto-submit[bot] merged 1 commit intoflutter:mainfrom
bdero:bdero/fix-modulate
Oct 8, 2022
Merged

[Impeller] Fix modulate blend mode#36659
auto-submit[bot] merged 1 commit intoflutter:mainfrom
bdero:bdero/fix-modulate

Conversation

@bdero
Copy link
Contributor

@bdero bdero commented Oct 7, 2022

Before, modulate was just clearing out the pass due to the zero alpha factors. The color is src * dst, which is correct. This patch sets the alpha to also be src * dst.

Skia on left, Impeller on right:
Screen Shot 2022-10-07 at 4 45 09 AM

@bdero bdero self-assigned this Oct 7, 2022
@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.

@bdero bdero changed the title [Impeller] FIx modulate blend mode [Impeller] Fix modulate blend mode Oct 7, 2022
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

@bdero bdero force-pushed the bdero/fix-modulate branch from ff57d5f to 23ade01 Compare October 8, 2022 02:47
@bdero bdero added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 8, 2022
@auto-submit auto-submit bot merged commit 3b88fb1 into flutter:main Oct 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 8, 2022
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 e: impeller needs tests

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants