mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
_This is a refactoring with no semantic changes._ Prepare the Windows embedder to add/remove views. In a multi-view world, the platform thread can remove a view while the raster thread presenting to the same view. A lock will be introduced to ensure this does not happen. This shuffles the code around so that the engine can acquire the lock before the compositor presents to the view. Prepares for https://github.com/flutter/flutter/issues/138179 Part of https://github.com/flutter/flutter/issues/142845 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style