Skip to content
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

[CP][Impeller] distinguish between no clear color and transparent black clear color. #49108

Closed

Conversation

zanderso
Copy link
Member

This is a cherry-pick of #49038 into the 3.16 branch.

…lear color. (flutter#49038)

If we clear to transparent black, we're not forcing the pass to be constructed. Change the entity pass API so that we can tell the difference between clearing transparent black and not having a clear color.

In flutter/flutter#139571 , the app is creating a layer that is clearing to a transparent color, which is getting skipped. That invalid texture is fed into a blend which produces either black or magenta error texture.

Fixes flutter/flutter#139571
@zanderso
Copy link
Member Author

Going to lump this and another patch into one CP request.

@zanderso zanderso closed this Dec 18, 2023
@zanderso zanderso deleted the cp-fix-clip-rect branch December 18, 2023 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
2 participants