mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
If we don't follow the guidelines at https://developer.android.com/games/optimize/vulkan-prerotation , then any presentations while the screen is rotated will result in suboptimalKHR. Use a change in state across presentations from sucess -> suboptimal or suboptimal -> sucess to detect whether the swapchain needs to be recreated. Fixes https://github.com/flutter/flutter/issues/129459 (mostly)