mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Fixes https://github.com/flutter/flutter/issues/157112 We currently track the number of backdrop filters in a frame. When the end of the frame is reached, we do a blit from the offscreen texture to the onscreen texture. Howeever, this extra blit is unecessary once we know we've rendered the last backdrop - and we can instead start the last render pass with the onscreen. This cuts out a fairly expensive blit. this can only be done on iOS physical devices, vulkan, and some GLES - as emulated blends also use the backdrop. ## Before Shader time is lower but timeline claims about 2.8ms and about ~800ms of blit pass.  ## After Timeline is ~2.1 ms with no blit pass. Tracks with numbers above. 