Fix stale platform view gr context on iOS (#13469)
When gr context is changed (this happens when sending the app to the background and then to the foreground) we need to update it for all the platform view overlay surfaces. The update logic was caching the previous gr context to figure if it had to be updated, but after updating it for a given overlay we were updating the cached context. In apps with multiple platform views this will result in overlays with a stale gr context. This fixes flutter/flutter#36437 And I believe it should fix flutter/flutter#36999 as well (though I don't have repro code to verify).
Showing
31.8 KB