This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Commit aede5b0
authored
This is a reland of the new gaussian blur.
Changes since revert:
1) Textures are now recycled with ping ponging to reduce memory usage
1) Mipmaps are generated to diminish the shimmering that happens with animated blurs (in metal)
---
This new blur should perform faster since it scales down the image before blurring it. Jonah did early testing of it and found it to be faster. Scrolling around with the blur perf bug it seems faster. It also has a wider test bed and is hopefully easier to maintain since it contains all of its logic for both directions.
testing: There are existing blur tests and we've backfilled more as we've added features to this blur.
fixes flutter/flutter#131580 fixes flutter/flutter#138259
https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]:
https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]:
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [C++, Objective-C, Java style guides]:
https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style [testing the engine]:
https://github.com/flutter/flutter/wiki/Testing-the-engine [CLA]: https://cla.developers.google.com/
https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat
1 parent 6614de3 commit aede5b0
File tree
4 files changed
+41
-44
lines changed- impeller
- aiks
- entity
- contents/filters
4 files changed
+41
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3758 | 3758 | | |
3759 | 3759 | | |
3760 | 3760 | | |
3761 | | - | |
| 3761 | + | |
3762 | 3762 | | |
3763 | 3763 | | |
3764 | 3764 | | |
| 3765 | + | |
| 3766 | + | |
| 3767 | + | |
3765 | 3768 | | |
3766 | 3769 | | |
3767 | 3770 | | |
| |||
3782 | 3785 | | |
3783 | 3786 | | |
3784 | 3787 | | |
3785 | | - | |
| 3788 | + | |
3786 | 3789 | | |
3787 | 3790 | | |
3788 | 3791 | | |
3789 | 3792 | | |
| 3793 | + | |
| 3794 | + | |
| 3795 | + | |
3790 | 3796 | | |
3791 | 3797 | | |
3792 | 3798 | | |
| |||
3809 | 3815 | | |
3810 | 3816 | | |
3811 | 3817 | | |
3812 | | - | |
3813 | | - | |
3814 | | - | |
| 3818 | + | |
| 3819 | + | |
| 3820 | + | |
| 3821 | + | |
| 3822 | + | |
| 3823 | + | |
| 3824 | + | |
| 3825 | + | |
3815 | 3826 | | |
3816 | 3827 | | |
3817 | 3828 | | |
| 3829 | + | |
| 3830 | + | |
3818 | 3831 | | |
3819 | 3832 | | |
3820 | 3833 | | |
| |||
3835 | 3848 | | |
3836 | 3849 | | |
3837 | 3850 | | |
3838 | | - | |
3839 | | - | |
3840 | | - | |
| 3851 | + | |
| 3852 | + | |
| 3853 | + | |
| 3854 | + | |
| 3855 | + | |
| 3856 | + | |
| 3857 | + | |
| 3858 | + | |
3841 | 3859 | | |
3842 | 3860 | | |
3843 | 3861 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | 53 | | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | 54 | | |
59 | 55 | | |
60 | 56 | | |
61 | 57 | | |
62 | 58 | | |
63 | 59 | | |
64 | 60 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
97 | 65 | | |
98 | 66 | | |
99 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
259 | 267 | | |
260 | 268 | | |
261 | 269 | | |
| |||
0 commit comments