flutter/dev/integration_tests/android_engine_test/lib/hcpp
Jonah Williams 7cd9e0f640
[Android] Remove overlay when platform views are removed from screen. (#162908)
When there are no more platform views, make sure the overlay layer is
hidden. When a platform view is added again, show the overlay. The
show/hide allows us to avoid continually recreating and destroying the
overlay surface + swapchain when a platform view slides in and out of
frame.

To further reduce memory usage, we could do a delayed de-allocation of
the overlay layer (say after 50 frames of no platform view, destroy it).
But I'm leaving this to a follow up.
2025-02-11 02:29:07 +00:00
..
platform_view_main.dart [Android] Remove overlay when platform views are removed from screen. (#162908) 2025-02-11 02:29:07 +00:00