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

Conversation

@bdero
Copy link
Member

@bdero bdero commented Aug 25, 2023

3.13 cherry-pick for #43519.

This problem is difficult to fix without a series of risky reverts, and so this is a forward fix.
This is a combined cherry-pick of two dependent commits: 81d5adb and 53595c9.

bdero added 2 commits August 25, 2023 14:32
…s. (flutter#43519)

Apply color filters on the CPU for solid colors and gradients. This
fixes flutter/flutter#127232 for the purely
color-based color sources.

We still need to make the other special color blending paths respect the
geometry mask in order to fully resolve the underlying issue:
* SaveLayers (if they have an interesting matrix filter -- without a
matrix filter, it'll always work today)
* TiledTextureContents
* TextContents
* VerticesContents
* AtlasContents

(cherry picked from commit 81d5adb)
…er#45079)

Resolves flutter/flutter#132936.

* In some cases, mask blurs were getting applied twice.
* Coverage hint clipping was too aggressive on the second pass of the
gaussian blur.
* Rework the mask blur applicator to support gracefully falling back to
GPU-based color filters when necessary.

This fix requires us to cherry-pick:
flutter#43519
Going a revert-based route to fix all of these problems would also be
pretty complex.

https://github.com/flutter/engine/assets/919017/9ee5e856-af7a-42b9-b135-ea268c2ba53f
(cherry picked from commit 53595c9)
@bdero bdero requested a review from zanderso August 25, 2023 21:44
@bdero bdero changed the title [CP] [Impeller] Apply color blends on the CPU; fix mask blurs and the Gaussian blur coverage hint. [CP] 3.13: [Impeller] Apply color blends on the CPU; fix mask blurs and the Gaussian blur coverage hint. Aug 28, 2023
@bdero
Copy link
Member Author

bdero commented Aug 28, 2023

Moving forward with a 3.14 beta cherry-pick for now. Context: flutter/flutter#133360 (comment)

@bdero bdero closed this Aug 28, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant