Improve Vulkan Android surface lifecycle (#4323)

This commit is contained in:
Adrian Cojocaru
2026-06-05 19:59:36 +03:00
committed by GitHub
parent a770b79551
commit 269d1bc910
7 changed files with 52 additions and 37 deletions

View File

@@ -147,7 +147,9 @@ private:
std::unique_ptr<AndroidRendererBackend> backend;
std::unique_ptr<Renderer> renderer;
std::unique_ptr<ActorRef<Renderer>> rendererRef;
std::unique_ptr<ANativeWindow, std::function<void(ANativeWindow*)>> window;
using UniqueANativeWindow = std::unique_ptr<ANativeWindow, std::function<void(ANativeWindow*)>>;
UniqueANativeWindow window;
std::shared_ptr<UpdateParameters> updateParameters;
std::mutex updateMutex;