mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Partial work towards https://github.com/flutter/flutter/issues/131450.
---
Run the Playground locally:
```bash
$ENGINE/out/host_debug_unopt/impeller_unittests \
--enable_playground \
--gtest_filter="*CanRenderLinearGradientWithDithering*"
```
Summary of changes:
- Added a playground/test for dithering disabled and enabled.
- Added `bool dither` to Impeller's `Paint`, but `SetDither` (use-facing) is ignored.
- Converted [Skia's dithering](f9de059517/src/opts/SkRasterPipeline_opts.h (L1717)) to GLSL and invoked it when `dither` is set.
## Before

## After

## Deleted Scenes
<details>
<summary>Here are some of my earlier attempts that are fun to share :)</summary>





</details>