Repository navigation
[Impeller] tear down swapchain when backgrounding. - #165259
Conversation
|
This should show up in our memory benchmarks |
There was a problem hiding this comment.
The code is simple and looks good to me. There is a mechanism outside of this PR that resurrects the swapchain. I'd love to have a test that exercises that. Maybe in the android view level?
At a minimum we should have a comment that explains the mechanism that resurrects the swapchain.
| } | ||
|
|
||
| void SurfaceContextVK::TeardownSwapchain() { | ||
| swapchain_.reset(); |
There was a problem hiding this comment.
Probably worth commenting how this will get resurrected.
THe android engine tests background and foreground and test rendering. I think those will cover it |
|
Added unit test and doc comment. |
|
autosubmit label was removed for flutter/flutter/165259, because - The status or check suite Google testing has failed. Please fix the issues identified (or deflake) before re-applying this label. |
When we return to the foreground the swapchain is reconstructed anyway. Eagerly tearing the old one down releases memory faster. Highlighted by a regression in a customer: money benchmark.
When we return to the foreground the swapchain is reconstructed anyway. Eagerly tearing the old one down releases memory faster. Highlighted by a regression in a customer: money benchmark.