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

[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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants