Enable ColorFilterLayer support RasterCache#31589
Enable ColorFilterLayer support RasterCache#31589fluttergithubbot merged 6 commits intoflutter:mainfrom
Conversation
flar
left a comment
There was a problem hiding this comment.
Is there a benchmark which shows an improvement with this change? Have you tried running the https://github.com/flutter/flutter/blob/48c9bbe18247798d526373be4dcf7a54d8369f9c/.ci.yaml#L1479 or the https://github.com/flutter/flutter/blob/48c9bbe18247798d526373be4dcf7a54d8369f9c/.ci.yaml#L1490 benchmarks with this change?
Another situation to consider is when the CF is changing, but the children are not. ImageFilterLayer takes that case into account.
OK, I will add some benchmark data and example code later. |
cache child when color_filter_layer is changing
@flar Referred to ImageFilterLayer, I have optimized the CF raster cache code. For benchmarks, I found that color_filter_and_fade_perf__timeline_summary will not create a ColorFilterLayer, so I add some benchmarks as flutter/flutter#99542 shown. we can see that the |
@flar Could you please review this PR again? |
flar
left a comment
There was a problem hiding this comment.
LGTM, but you have to fix the licenses before it is ready to merge.
e6efad5 to
e315f1e
Compare
Fix flutter/flutter#98866
Pre-launch Checklist
writing and running engine tests.
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.